summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/LoggerUtil.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Ice/LoggerUtil.h')
-rw-r--r--cpp/include/Ice/LoggerUtil.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/include/Ice/LoggerUtil.h b/cpp/include/Ice/LoggerUtil.h
index ff890e9aedd..8352e72c2e6 100644
--- a/cpp/include/Ice/LoggerUtil.h
+++ b/cpp/include/Ice/LoggerUtil.h
@@ -24,11 +24,11 @@ public:
std::string str() const;
- std::ostringstream& __str(); // For internal use only. Don't use in your code.
+ std::ostringstream& _stream(); // For internal use only. Don't use in your code.
private:
- std::ostringstream _str;
+ std::ostringstream _os;
};
ICE_API LoggerOutputBase& loggerInsert(LoggerOutputBase& out, const IceUtil::Exception& ex);
@@ -48,7 +48,7 @@ struct LoggerOutputInserter
static inline LoggerOutputBase&
insert(LoggerOutputBase& out, const T& val)
{
- out.__str() << val;
+ out._stream() << val;
return out;
}
};
@@ -87,7 +87,7 @@ operator<<(LoggerOutputBase& os, const ::IceInternal::ProxyHandle<T>& p)
inline LoggerOutputBase&
operator<<(LoggerOutputBase& out, const ::std::exception& ex)
{
- out.__str() << ex.what();
+ out._stream() << ex.what();
return out;
}
@@ -108,13 +108,13 @@ public:
inline void flush()
{
- std::string s = __str().str();
+ std::string s = _stream().str();
if(!s.empty())
{
L& ref = *_logger;
(ref.*output)(s);
}
- __str().str("");
+ _stream().str("");
}
private: