[gnote] Remove boost::format from webdav sync addin
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove boost::format from webdav sync addin
- Date: Fri, 13 Jan 2017 20:54:47 +0000 (UTC)
commit a58ff8bbb5e679ac6651e51cd0a0939bef32018f
Author: Aurimas Černius <aurisc4 gmail com>
Date: Fri Jan 13 22:34:39 2017 +0200
Remove boost::format from webdav sync addin
.../webdavsyncservice.desktop.in.in | 2 +-
.../webdavsyncservice/webdavsyncserviceaddin.cpp | 11 ++++++-----
2 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/src/addins/webdavsyncservice/webdavsyncservice.desktop.in.in
b/src/addins/webdavsyncservice/webdavsyncservice.desktop.in.in
index 7148823..1064c16 100644
--- a/src/addins/webdavsyncservice/webdavsyncservice.desktop.in.in
+++ b/src/addins/webdavsyncservice/webdavsyncservice.desktop.in.in
@@ -4,7 +4,7 @@ _Name=WebDAV Sync Service Plugin
_Description=Synchronize Gnote Notes to a WebDAV URL.
_Authors=Aurimas Černius and the Tomboy Project
Category=Synchronization
-Version=0.2
+Version=0.3
DefaultEnabled=true
Module=libwebdavsyncservice
LibgnoteRelease=@LIBGNOTE_RELEASE@
diff --git a/src/addins/webdavsyncservice/webdavsyncserviceaddin.cpp
b/src/addins/webdavsyncservice/webdavsyncserviceaddin.cpp
index 6292051..8ed1d34 100644
--- a/src/addins/webdavsyncservice/webdavsyncserviceaddin.cpp
+++ b/src/addins/webdavsyncservice/webdavsyncserviceaddin.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2012-2013 Aurimas Cernius
+ * Copyright (C) 2012-2013,2017 Aurimas Cernius
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -18,7 +18,6 @@
*/
-#include <boost/format.hpp>
#include <glibmm/i18n.h>
#include "debug.hpp"
@@ -260,9 +259,11 @@ void WebDavSyncServiceAddin::save_config_settings(const std::string & url, const
//Preferences.Set ("/apps/tomboy/sync_wdfs_url", url ?? string.Empty);
//Preferences.Set ("/apps/tomboy/sync_wdfs_username", username ?? string.Empty);
- // TRANSLATORS: %1%: boost format placeholder for the error message.
- boost::format msg(_("Saving configuration to the GNOME keyring failed with the following
message:\n\n%1%"));
- throw gnote::sync::GnoteSyncException(str(msg % ke.what()).c_str());
+ // TRANSLATORS: %1 is the format placeholder for the error message.
+ Glib::ustring msg = Glib::ustring::compose(
+ _("Saving configuration to the GNOME keyring failed with the following message:\n\n%1"),
+ ke.what());
+ throw gnote::sync::GnoteSyncException(msg.c_str());
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]