summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-29 18:24:10 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-29 18:24:10 -0400
commitda1cd7c4bc70f4afb594acf61295539caa84a87e (patch)
treee0eca17d8108cb4c2bd963fc431de463f4120e87 /src
parent05c77351e458c08873c813264005f61f828b5383 (diff)
downloadfork-ledger-da1cd7c4bc70f4afb594acf61295539caa84a87e.tar.gz
fork-ledger-da1cd7c4bc70f4afb594acf61295539caa84a87e.tar.bz2
fork-ledger-da1cd7c4bc70f4afb594acf61295539caa84a87e.zip
Whitespace cleanup.
Diffstat (limited to 'src')
-rw-r--r--src/option.cc6
-rw-r--r--src/session.h54
2 files changed, 29 insertions, 31 deletions
diff --git a/src/option.cc b/src/option.cc
index 65de3d1f..3cafa06a 100644
--- a/src/option.cc
+++ b/src/option.cc
@@ -49,8 +49,7 @@ namespace {
}
*p = '\0';
- expr_t::ptr_op_t op = scope.lookup(buf);
- if (op)
+ if (expr_t::ptr_op_t op = scope.lookup(buf))
return op_bool_tuple(op, false);
*p++ = '_';
@@ -66,8 +65,7 @@ namespace {
buf[4] = letter;
buf[5] = '\0';
- expr_t::ptr_op_t op = scope.lookup(buf);
- if (op)
+ if (expr_t::ptr_op_t op = scope.lookup(buf))
return op_bool_tuple(op, false);
buf[5] = '_';
diff --git a/src/session.h b/src/session.h
index 84e19531..d2ce48dd 100644
--- a/src/session.h
+++ b/src/session.h
@@ -50,41 +50,41 @@ class session_t : public noncopyable, public scope_t
friend void release_session_context();
public:
- static session_t * current;
+ static session_t * current;
- scoped_ptr<report_t> current_report;
+ scoped_ptr<report_t> current_report;
- path data_file;
- optional<path> init_file;
- optional<path> cache_file;
- optional<path> price_db;
+ path data_file;
+ optional<path> init_file;
+ optional<path> cache_file;
+ optional<path> price_db;
- string register_format;
- string wide_register_format;
- string print_format;
- string balance_format;
- string equity_format;
- string plot_amount_format;
- string plot_total_format;
- string write_hdr_format;
- string write_xact_format;
- string prices_format;
- string pricesdb_format;
+ string register_format;
+ string wide_register_format;
+ string print_format;
+ string balance_format;
+ string equity_format;
+ string plot_amount_format;
+ string plot_total_format;
+ string write_hdr_format;
+ string write_xact_format;
+ string prices_format;
+ string pricesdb_format;
- unsigned long pricing_leeway;
+ unsigned long pricing_leeway;
- bool download_quotes;
- bool use_cache;
- bool cache_dirty;
+ bool download_quotes;
+ bool use_cache;
+ bool cache_dirty;
- datetime_t now;
- date_t today;
+ datetime_t now;
+ date_t today;
- format_t::elision_style_t elision_style;
- int abbrev_length;
+ format_t::elision_style_t elision_style;
+ int abbrev_length;
- bool ansi_codes;
- bool ansi_invert;
+ bool ansi_codes;
+ bool ansi_invert;
ptr_list<journal_t> journals;
ptr_list<journal_t::parser_t> parsers;