summaryrefslogtreecommitdiff
path: root/src/gdbusxx
diff options
context:
space:
mode:
authorKrzesimir Nowak <krnowak@openismus.com>2012-03-08 11:28:22 +0100
committerPatrick Ohly <patrick.ohly@intel.com>2012-05-08 09:13:46 +0200
commitaf1e0e41ed02466a176925954e7f394d2a39533c (patch)
treeaa76bd508290864dc7e53be17346738ff909a3ff /src/gdbusxx
parentaf0a5f6951dcb1c8672d9a2082b22e20e93049a4 (diff)
gio-gdbus-wrapper: Use literal version of error reply creation functions.
Diffstat (limited to 'src/gdbusxx')
-rw-r--r--src/gdbusxx/gdbus-cxx-bridge.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gdbusxx/gdbus-cxx-bridge.h b/src/gdbusxx/gdbus-cxx-bridge.h
index 09427565..fec7e695 100644
--- a/src/gdbusxx/gdbus-cxx-bridge.h
+++ b/src/gdbusxx/gdbus-cxx-bridge.h
@@ -1866,13 +1866,13 @@ static GDBusMessage *handleException(GDBusMessage *msg)
throw;
#endif
} catch (const dbus_error &ex) {
- return g_dbus_message_new_method_error(msg, ex.dbusName().c_str(), "%s", ex.what());
+ return g_dbus_message_new_method_error_literal(msg, ex.dbusName().c_str(), ex.what());
} catch (const DBusCXXException &ex) {
- return g_dbus_message_new_method_error(msg, ex.getName().c_str(), "%s", ex.getMessage());
+ return g_dbus_message_new_method_error_literal(msg, ex.getName().c_str(), ex.getMessage());
} catch (const std::runtime_error &ex) {
- return g_dbus_message_new_method_error(msg, "org.syncevolution.gdbuscxx.Exception", "%s", ex.what());
+ return g_dbus_message_new_method_error_literal(msg, "org.syncevolution.gdbuscxx.Exception", ex.what());
} catch (...) {
- return g_dbus_message_new_method_error(msg, "org.syncevolution.gdbuscxx.Exception", "unknown");
+ return g_dbus_message_new_method_error_literal(msg, "org.syncevolution.gdbuscxx.Exception", "unknown");
}
}