From 95c6c66d58875354a022f0e9b56c04a886da8e5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=89=E1=85=A5=E1=86=BC=E1=84=82=E1=85=A1=E1=86=A8?= =?UTF-8?q?=E1=84=92=E1=85=A9?= Date: Fri, 6 Sep 2013 16:10:11 +0900 Subject: [PATCH] * obey naming convention * hide unnecessary methods from public. --- extensions/AssetsManager/AssetsManager.cpp | 6 +++--- extensions/AssetsManager/AssetsManager.h | 17 ++++++++--------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/extensions/AssetsManager/AssetsManager.cpp b/extensions/AssetsManager/AssetsManager.cpp index 61b9081121..b1b909bce2 100644 --- a/extensions/AssetsManager/AssetsManager.cpp +++ b/extensions/AssetsManager/AssetsManager.cpp @@ -110,7 +110,7 @@ void AssetsManager::checkStoragePath() } // Multiple key names -static std::string key_with_hash( const char* prefix, const std::string& url ) +static std::string keyWithHash( const char* prefix, const std::string& url ) { char buf[256]; sprintf(buf,"%s%zd",prefix,std::hash()(url)); @@ -120,13 +120,13 @@ static std::string key_with_hash( const char* prefix, const std::string& url ) // hashed version std::string AssetsManager::keyOfVersion() const { - return key_with_hash(KEY_OF_VERSION,_packageUrl); + return keyWithHash(KEY_OF_VERSION,_packageUrl); } // hashed version std::string AssetsManager::keyOfDownloadedVersion() const { - return key_with_hash(KEY_OF_DOWNLOADED_VERSION,_packageUrl); + return keyWithHash(KEY_OF_DOWNLOADED_VERSION,_packageUrl); } static size_t getVersionCode(void *ptr, size_t size, size_t nmemb, void *userdata) diff --git a/extensions/AssetsManager/AssetsManager.h b/extensions/AssetsManager/AssetsManager.h index 6229ba8934..1a5993e364 100644 --- a/extensions/AssetsManager/AssetsManager.h +++ b/extensions/AssetsManager/AssetsManager.h @@ -147,15 +147,6 @@ public: */ friend int assetsManagerProgressFunc(void *, double, double, double, double); - /** @brief Initializes storage path. - */ - void createStoragePath(); - - /** @brief Destroys storage path. - */ - void destroyStoragePath(); - - protected: bool downLoad(); void checkStoragePath(); @@ -190,6 +181,14 @@ private: std::mutex _messageQueueMutex; }; +private: + /** @brief Initializes storage path. + */ + void createStoragePath(); + + /** @brief Destroys storage path. + */ + void destroyStoragePath(); private: //! The path to store downloaded resources.