[Groonga-commit] groonga/grnxx at b202749 [master] Specify STRING_BUILDER_NOEXCEPT not to throw an exception in logging.

Back to archive index

susumu.yata null+****@clear*****
Mon Jul 1 13:07:41 JST 2013


susumu.yata	2013-07-01 13:07:41 +0900 (Mon, 01 Jul 2013)

  New Revision: b20274935922665e449250cf87653e072e408102
  https://github.com/groonga/grnxx/commit/b20274935922665e449250cf87653e072e408102

  Message:
    Specify STRING_BUILDER_NOEXCEPT not to throw an exception in logging.

  Modified files:
    lib/grnxx/logger.cpp

  Modified: lib/grnxx/logger.cpp (+3 -2)
===================================================================
--- lib/grnxx/logger.cpp    2013-07-01 13:02:34 +0900 (3a00610)
+++ lib/grnxx/logger.cpp    2013-07-01 13:07:41 +0900 (3962978)
@@ -141,8 +141,9 @@ int Logger::backtrace_level_ = ERROR_LOGGER;
 
 Logger::Logger(const char *file, int line, const char *func, int level)
     : buf_(),
-      builder_(buf_, (Logger::flags() & LOGGER_ENABLE_AUTO_RESIZE) ?
-                     STRING_BUILDER_AUTO_RESIZE : STRING_BUILDER_DEFAULT),
+      builder_(buf_, ((Logger::flags() & LOGGER_ENABLE_AUTO_RESIZE) ?
+                      STRING_BUILDER_AUTO_RESIZE : STRING_BUILDER_DEFAULT) |
+                     STRING_BUILDER_NOEXCEPT),
       file_(file),
       line_(line),
       func_(func),
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index