summaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/document.h2
-rw-r--r--src/data/journal.h2
-rw-r--r--src/data/node.h8
-rw-r--r--src/data/textual.cc2
4 files changed, 7 insertions, 7 deletions
diff --git a/src/data/document.h b/src/data/document.h
index c1dcf88e..2eac4043 100644
--- a/src/data/document.h
+++ b/src/data/document.h
@@ -149,4 +149,4 @@ public:
} // namespace xml
} // namespace ledger
-#endif // _DOCUMENT_H
+#endif // _DOCUMENT_H
diff --git a/src/data/journal.h b/src/data/journal.h
index ed92bffb..821f6910 100644
--- a/src/data/journal.h
+++ b/src/data/journal.h
@@ -358,7 +358,7 @@ bool run_hooks(std::list<T>& list, Data& item, bool post) {
typedef std::list<entry_t *> entries_list;
typedef std::list<auto_entry_t *> auto_entries_list;
typedef std::list<period_entry_t *> period_entries_list;
-typedef std::list<path> path_list;
+typedef std::list<path> path_list;
typedef std::list<string> strings_list;
class journal_t
diff --git a/src/data/node.h b/src/data/node.h
index b0324ca0..36964bdf 100644
--- a/src/data/node.h
+++ b/src/data/node.h
@@ -106,10 +106,10 @@ public:
if (! is_parent_node())
throw_(std::logic_error, "Request to cast leaf node to a parent node");
return downcast<parent_node_t>(*this);
- }
+ }
const parent_node_t& as_parent_node() const {
return const_cast<node_t *>(this)->as_parent_node();
- }
+ }
bool is_terminal_node() const {
return ! has_flags(XML_NODE_IS_PARENT);
@@ -118,10 +118,10 @@ public:
if (! is_terminal_node())
throw_(std::logic_error, "Request to cast parent node to a leaf node");
return downcast<terminal_node_t>(*this);
- }
+ }
const terminal_node_t& as_terminal_node() const {
return const_cast<node_t *>(this)->as_terminal_node();
- }
+ }
virtual value_t to_value() const = 0;
virtual void print(std::ostream& out) const = 0;
diff --git a/src/data/textual.cc b/src/data/textual.cc
index 8fdd4db1..9bee6c39 100644
--- a/src/data/textual.cc
+++ b/src/data/textual.cc
@@ -175,7 +175,7 @@ void parse_entry(std::istream& in,
date = line;
char * p = line;
-
+
while (*p && (std::isdigit(*p) || *p == '/' || *p == '.' || *p == '-'))
p++;
assert(*p);