summaryrefslogtreecommitdiff
path: root/src/filters.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-15 06:28:30 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-15 06:28:30 -0400
commitbe91f38ab4ccdba6006106d45fd7061db2110470 (patch)
tree25874de7e90c34224c842e6b716ca9e82fe01028 /src/filters.h
parentf3bedb88b24ae8b2047ad86e57b161265c2812f5 (diff)
parent968a6f3c0ac4690a6fc74e8d84058bce91019c2e (diff)
downloadfork-ledger-be91f38ab4ccdba6006106d45fd7061db2110470.tar.gz
fork-ledger-be91f38ab4ccdba6006106d45fd7061db2110470.tar.bz2
fork-ledger-be91f38ab4ccdba6006106d45fd7061db2110470.zip
Merge branch 'next'
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");