Refactor RippleCalc.cpp:

* Add comments
* Restrict code to 80 colums
* Remove boost::format
* Remove BOOST_FOREACH
* Make members private
* Add ripple_unordered_set to UnorderedContainers.h
* Replace boost::unordered_set with ripple::unordered_set
This commit is contained in:
Tom Swirly
2014-05-08 13:53:13 -04:00
committed by Nik Bougalis
parent 6f2bcc6fb0
commit 390ea65e15
13 changed files with 1418 additions and 1264 deletions

View File

@@ -20,7 +20,7 @@
#ifndef RIPPLE_SITEFILES_LOGIC_H_INCLUDED
#define RIPPLE_SITEFILES_LOGIC_H_INCLUDED
#include "../../common/UnorderedMap.h"
#include "../../common/UnorderedContainers.h"
#include <memory>
@@ -32,7 +32,7 @@ Config file format:
Syntactically a series of lines, where line has this format:
[ <vertical whitespace> ] <anything> ( <vertical-whitespace> OR <end-of-file> )
Semantically a series of of zero or more sections, where each section
has a name and optional data. Specifically, the format:
( <start-of-file> OR <header> ) <data>
@@ -119,7 +119,7 @@ public:
void addURL (std::string const& urlstr)
{
beast::ParsedURL const p (urlstr);
if (p.error())
{
m_journal.error <<