forked from HowardHinnant/date
Move get_program_folder closer to where it is used
This commit is contained in:
16
tz.cpp
16
tz.cpp
@@ -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
|
||||||
|
Reference in New Issue
Block a user