STORM-2145 Use string constant rather than a hardcoded string.
parent
96481c1593
commit
9954d8d823
|
|
@ -126,7 +126,7 @@ std::string LLPresetsManager::getPresetsDir(const std::string& subdirectory)
|
|||
|
||||
if (PRESETS_CAMERA == subdirectory)
|
||||
{
|
||||
std::string source_dir = gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, "Camera");
|
||||
std::string source_dir = gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, PRESETS_CAMERA);
|
||||
LLDirIterator dir_iter(source_dir, "*.xml");
|
||||
bool found = true;
|
||||
while (found)
|
||||
|
|
@ -136,9 +136,9 @@ std::string LLPresetsManager::getPresetsDir(const std::string& subdirectory)
|
|||
|
||||
if (found)
|
||||
{
|
||||
std::string source = gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, "Camera", file);
|
||||
std::string source = gDirUtilp->getExpandedFilename(LL_PATH_APP_SETTINGS, PRESETS_CAMERA, file);
|
||||
file = LLURI::escape(file);
|
||||
std::string dest = gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, PRESETS_DIR, "Camera", file);
|
||||
std::string dest = gDirUtilp->getExpandedFilename(LL_PATH_PER_SL_ACCOUNT, PRESETS_DIR, PRESETS_CAMERA, file);
|
||||
LLFile::copy(source, dest);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue