summaryrefslogtreecommitdiff
path: root/src/utils.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-14 21:36:42 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-05-14 21:44:00 -0600
commitf4f3058b8cd75c04080f9b68cb54b9584eafb39f (patch)
treeeca9ca6ceca001209fb93c05b52e21031280d18c /src/utils.cc
parent96172669053bbba7263a370f109f70615049a0c6 (diff)
downloadfork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.gz
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.bz2
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.zip
Switch to using Boost.Format
Diffstat (limited to 'src/utils.cc')
-rw-r--r--src/utils.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils.cc b/src/utils.cc
index ada6b600..d8cba61e 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -393,7 +393,7 @@ void trace_dtor_func(void * ptr, const char * cls_name, std::size_t cls_size)
objects_map::iterator i = live_objects->find(ptr);
if (i == live_objects->end()) {
- warning_(_("Attempting to delete %1 a non-living %2") << ptr << cls_name);
+ warning_(_f("Attempting to delete %1% a non-living %2%") % ptr % cls_name);
memory_tracing_active = true;
return;
}
@@ -408,7 +408,7 @@ void trace_dtor_func(void * ptr, const char * cls_name, std::size_t cls_size)
object_count_map::iterator k = live_object_count->find(cls_name);
if (k == live_object_count->end()) {
- warning_(_("Failed to find %1 in live object counts") << cls_name);
+ warning_(_f("Failed to find %1% in live object counts") % cls_name);
memory_tracing_active = true;
return;
}
@@ -572,7 +572,7 @@ strings_list split_arguments(const char * line)
if (in_quoted_string)
throw_(std::logic_error,
- _("Unterminated string, expected '%1'") << in_quoted_string);
+ _f("Unterminated string, expected '%1%'") % in_quoted_string);
if (q != buf) {
*q = '\0';