[Groonga-commit] groonga/grnxx at f793d32 [master] Rename file_dummy to new_file.

Back to archive index

susumu.yata null+****@clear*****
Mon Jul 1 15:10:44 JST 2013


susumu.yata	2013-07-01 15:10:44 +0900 (Mon, 01 Jul 2013)

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

  Message:
    Rename file_dummy to new_file.

  Modified files:
    lib/grnxx/logger.cpp

  Modified: lib/grnxx/logger.cpp (+3 -3)
===================================================================
--- lib/grnxx/logger.cpp    2013-07-01 15:05:52 +0900 (5c54760)
+++ lib/grnxx/logger.cpp    2013-07-01 15:10:44 +0900 (53ced0c)
@@ -124,14 +124,14 @@ bool LoggerSingleton::open(const char *path) {
       return false;
     }
     std::memcpy(path_clone.get(), path, buf_size);
-    std::unique_ptr<std::ofstream> file_dummy(
+    std::unique_ptr<std::ofstream> new_file(
         new (std::nothrow) std::ofstream(path_clone.get(),
             std::ios::out | std::ios::app | std::ios::binary));
-    if (!file_dummy || !*file_dummy) {
+    if (!new_file || !*new_file) {
       return false;
     }
     instance_->path_ = std::move(path_clone);
-    instance_->file_.swap(file_dummy);
+    instance_->file_.swap(new_file);
     return true;
   } catch (...) {
     return false;
-------------- next part --------------
HTML����������������������������...
Download 



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