From: Jesse Rosenstock Date: Thu, 26 Mar 2015 18:25:14 +0000 (-0400) Subject: LOG_STRING: use std::vector and std::string. X-Git-Tag: accepted/tizen/5.0/unified/20181102.024921~88^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=162a8ef4ea992b7a79c582f96d9cdde18925f49a;p=platform%2Fupstream%2Fglog.git LOG_STRING: use std::vector and std::string. Previously, plain vector and string were used. This assumed that there were "using" directives or declarations before the macro was used. This will not always be the case. --- diff --git a/src/glog/logging.h.in b/src/glog/logging.h.in index e8e3e7a..affe0c5 100644 --- a/src/glog/logging.h.in +++ b/src/glog/logging.h.in @@ -542,7 +542,7 @@ class LogSink; // defined below // vector *outvec; // The cast is to disambiguate NULL arguments. #define LOG_STRING(severity, outvec) \ - LOG_TO_STRING_##severity(static_cast*>(outvec)).stream() + LOG_TO_STRING_##severity(static_cast*>(outvec)).stream() #define LOG_IF(severity, condition) \ !(condition) ? (void) 0 : @ac_google_namespace@::LogMessageVoidify() & LOG(severity)