[Groonga-commit] groonga/grnxx at 7c72b52 [master] Remove needless forward declarations.

Back to archive index

susumu.yata null+****@clear*****
Wed May 1 10:40:08 JST 2013


susumu.yata	2013-05-01 10:40:08 +0900 (Wed, 01 May 2013)

  New Revision: 7c72b52c67c13793f2ad5e78844fd9977e1f5ade
  https://github.com/groonga/grnxx/commit/7c72b52c67c13793f2ad5e78844fd9977e1f5ade

  Message:
    Remove needless forward declarations.

  Modified files:
    lib/grnxx/storage.cpp
    lib/grnxx/storage.hpp

  Modified: lib/grnxx/storage.cpp (+5 -5)
===================================================================
--- lib/grnxx/storage.cpp    2013-04-30 22:31:53 +0900 (d906d71)
+++ lib/grnxx/storage.cpp    2013-05-01 10:40:08 +0900 (68a1577)
@@ -129,26 +129,26 @@ Storage::~Storage() {}
 Storage *Storage::create(const char *path,
                          StorageFlags flags,
                          const StorageOptions &options) {
-  return StorageImpl::create(path, flags, options);
+  return storage::StorageImpl::create(path, flags, options);
 }
 
 Storage *Storage::open(const char *path,
                        StorageFlags flags) {
-  return StorageImpl::open(path, flags);
+  return storage::StorageImpl::open(path, flags);
 }
 
 Storage *Storage::open_or_create(const char *path,
                                  StorageFlags flags,
                                  const StorageOptions &options) {
-  return StorageImpl::open_or_create(path, flags, options);
+  return storage::StorageImpl::open_or_create(path, flags, options);
 }
 
 bool Storage::exists(const char *path) {
-  return StorageImpl::exists(path);
+  return storage::StorageImpl::exists(path);
 }
 
 bool Storage::unlink(const char *path) {
-  return StorageImpl::unlink(path);
+  return storage::StorageImpl::unlink(path);
 }
 
 }  // namespace grnxx

  Modified: lib/grnxx/storage.hpp (+2 -6)
===================================================================
--- lib/grnxx/storage.hpp    2013-04-30 22:31:53 +0900 (144c0f1)
+++ lib/grnxx/storage.hpp    2013-05-01 10:40:08 +0900 (a2cc800)
@@ -26,13 +26,9 @@ namespace grnxx {
 namespace storage {
 
 struct NodeHeader;
-class StorageImpl;
 
 }  // namespace storage
 
-using StorageNodeHeader = storage::NodeHeader;
-using StorageImpl = storage::StorageImpl;
-
 class Storage;
 using StorageFlags = FlagsImpl<Storage>;
 
@@ -91,7 +87,7 @@ class StorageNode {
  public:
   StorageNode() = default;
   explicit StorageNode(std::nullptr_t) : header_(nullptr), body_(nullptr) {}
-  StorageNode(StorageNodeHeader *header, void *body)
+  StorageNode(storage::NodeHeader *header, void *body)
       : header_(header),
         body_(body) {}
 
@@ -116,7 +112,7 @@ class StorageNode {
 
  private:
   // The address to the node header.
-  StorageNodeHeader *header_;
+  storage::NodeHeader *header_;
   // The address to the node body.
   void *body_;
 };
-------------- next part --------------
HTML����������������������������...
下載 



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