Move get_program_folder closer to where it is used

This commit is contained in:
Howard Hinnant
2017-07-03 16:45:11 -04:00
parent a0b8883763
commit ea0158c779

16
tz.cpp
View File

@@ -191,14 +191,6 @@ get_known_folder(const GUID& folderid)
return folder; return folder;
} }
// Usually something like "c:\Program Files".
static
std::string
get_program_folder()
{
return get_known_folder(FOLDERID_ProgramFiles);
}
// Usually something like "c:\Users\username\Downloads". // Usually something like "c:\Users\username\Downloads".
static static
std::string std::string
@@ -2863,6 +2855,14 @@ move_file(const std::string& from, const std::string& to)
# endif // !USE_SHELL_API # endif // !USE_SHELL_API
} }
// Usually something like "c:\Program Files".
static
std::string
get_program_folder()
{
return get_known_folder(FOLDERID_ProgramFiles);
}
// Note folder can and usually does contain spaces. // Note folder can and usually does contain spaces.
static static
std::string std::string