Skip to content

Commit cfd9033

Browse files
authored
ofFilePath::getAppName() correct type for suffix
1 parent f6002ab commit cfd9033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/openFrameworks/utils/ofFileUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ class ofFilePath {
452452
/// \returns the App name as native string
453453
static const auto getAppName(bool strip_debug = true) {
454454
auto name = ofFilePath::getCurrentExePathFS().filename().native();
455-
typename std::filesystem::path::string_type debug_suffix = std::filesystem::path::string_type("Debug");
455+
auto debug_suffix = std::filesystem::path("Debug").native();
456456
auto dbsize = debug_suffix.size();
457457
if (strip_debug) {
458458
if (name.size() > dbsize && name.compare(name.size() -dbsize , dbsize, debug_suffix) == 0) {

0 commit comments

Comments
 (0)