From f87c6ba3585e9743c6df1240dc892d750bcdeb14 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 13 Jan 2013 09:47:01 -0800 Subject: [PATCH] Fix warnings. --- format.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/format.h b/format.h index 7c13470d..7294c963 100644 --- a/format.h +++ b/format.h @@ -680,13 +680,16 @@ namespace internal { using format::str; using format::c_str; -struct FormatterProxy { - Formatter *formatter; - explicit FormatterProxy(Formatter *f) : formatter(f) {} +class FormatterProxy { + private: + Formatter *formatter_; + + public: + explicit FormatterProxy(Formatter *f) : formatter_(f) {} Formatter *Format() { - formatter->CompleteFormatting(); - return formatter; + formatter_->CompleteFormatting(); + return formatter_; } };