From e4f16c2005e2cd60b618a622e8d3cefe368827bc Mon Sep 17 00:00:00 2001 From: Richard Barber Date: Mon, 17 Feb 2020 11:31:39 -0800 Subject: [PATCH] mac: use fewer variables --- rtgui/options.cc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/rtgui/options.cc b/rtgui/options.cc index 5b908d499..3cd3adb8a 100644 --- a/rtgui/options.cc +++ b/rtgui/options.cc @@ -2273,12 +2273,10 @@ void Options::load(bool lightweight) #ifdef __APPLE__ // Build Application Support directory path for macOS. const char* homedir = g_getenv("HOME"); // This returns the current container data dir in ~/Library - std::string configdir = "/Application Support/RawTherapee/config"; std::string homebuf{homedir}; int homelength = strlen(homebuf.c_str()); - homebuf[homelength-45] = '\0'; - configdir = "/Application Support/RawTherapee/config"; - std::string configpath = homebuf + configdir; + homebuf[homelength-44] = '\0'; + std::string configpath = homebuf + "/Application Support/RawTherapee/config"; path = configpath.c_str(); std::cout<