summaryrefslogtreecommitdiff
path: root/src/filters.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-15 10:12:04 +0100
committerJohn Wiegley <johnw@newartisans.com>2010-06-15 05:14:00 -0400
commit968a6f3c0ac4690a6fc74e8d84058bce91019c2e (patch)
tree25874de7e90c34224c842e6b716ca9e82fe01028 /src/filters.h
parent76b1ed68509d11308d50710f0542cef8fa437329 (diff)
downloadfork-ledger-968a6f3c0ac4690a6fc74e8d84058bce91019c2e.tar.gz
fork-ledger-968a6f3c0ac4690a6fc74e8d84058bce91019c2e.tar.bz2
fork-ledger-968a6f3c0ac4690a6fc74e8d84058bce91019c2e.zip
Changes for building with Visual Studio 2008
Diffstat (limited to 'src/filters.h')
-rw-r--r--src/filters.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/filters.h b/src/filters.h
index 0f414151..9102d4f1 100644
--- a/src/filters.h
+++ b/src/filters.h
@@ -74,9 +74,9 @@ public:
report_t& _report,
expr_t _group_by_expr)
: post_chain(_post_chain), report(_report),
- group_by_expr(_group_by_expr),
- preflush_func(bind(&post_splitter::print_title, this, _1)) {
+ group_by_expr(_group_by_expr) {
TRACE_CTOR(post_splitter, "scope_t&, post_handler_ptr, expr_t");
+ preflush_func = bind(&post_splitter::print_title, this, _1);
}
virtual ~post_splitter() {
TRACE_DTOR(post_splitter);
@@ -350,8 +350,7 @@ class anonymize_posts : public item_handler<post_t>
public:
anonymize_posts(post_handler_ptr handler)
: item_handler<post_t>(handler), next_comm_id(0), last_xact(NULL),
- rnd_gen(static_cast<unsigned int>(reinterpret_cast<uintmax_t>(this) +
- static_cast<uintmax_t>(std::time(0)))),
+ rnd_gen(static_cast<unsigned int>(static_cast<uintmax_t>(std::time(0)))),
integer_range(1, 2000000000L),
integer_gen(rnd_gen, integer_range) {
TRACE_CTOR(anonymize_posts, "post_handler_ptr");