From 968a6f3c0ac4690a6fc74e8d84058bce91019c2e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 15 Jun 2010 10:12:04 +0100 Subject: Changes for building with Visual Studio 2008 --- src/filters.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/filters.h') 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 public: anonymize_posts(post_handler_ptr handler) : item_handler(handler), next_comm_id(0), last_xact(NULL), - rnd_gen(static_cast(reinterpret_cast(this) + - static_cast(std::time(0)))), + rnd_gen(static_cast(static_cast(std::time(0)))), integer_range(1, 2000000000L), integer_gen(rnd_gen, integer_range) { TRACE_CTOR(anonymize_posts, "post_handler_ptr"); -- cgit v1.2.3