summaryrefslogtreecommitdiffstats
path: root/src/preferences.cpp
diff options
context:
space:
mode:
authorKishore Debnath <kishoredbn@engineer.com>2019-01-14 01:28:30 +0000
committerKishore Debnath <kishoredbn@engineer.com>2019-01-14 01:28:30 +0000
commit34276cc6bf25dc3bc9ee99acc60ec0938442407e (patch)
treef5f66fb724aa4119204fac747524b9bee7ec8144 /src/preferences.cpp
parentFix memleak and hopefully windows CI (diff)
downloadinkscape-34276cc6bf25dc3bc9ee99acc60ec0938442407e.tar.gz
inkscape-34276cc6bf25dc3bc9ee99acc60ec0938442407e.zip
Fixing Bug #1811551: GCC is not liking missing string_literal in g_strdup_printf(). In this change, I'm adding string literal and this is revoming the compilation problem in mac.
Diffstat (limited to 'src/preferences.cpp')
-rw-r--r--src/preferences.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/preferences.cpp b/src/preferences.cpp
index 8954ce5eb..2fe96dc22 100644
--- a/src/preferences.cpp
+++ b/src/preferences.cpp
@@ -299,8 +299,8 @@ void Preferences::reset()
{
if (g_file_test(_prefs_filename.c_str(), G_FILE_TEST_EXISTS)) {
int retcode = g_unlink (_prefs_filename.c_str());
- if (retcode == 0) g_warning(_("Preferences file was deleted."));
- else g_warning(_("There was an error trying to delete the preferences file."));
+ if (retcode == 0) g_warning("%s", _("Preferences file was deleted."));
+ else g_warning("%s", _("There was an error trying to delete the preferences file."));
}
for (_ObsMap::iterator i = _observer_map.begin(); i != _observer_map.end(); ) {
delete (*i++).second; // avoids reference to a deleted key