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.