diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 05ceca3811..ff85dcc4da 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -1,7 +1,10 @@ +2003-05-12 Alfredo Braunstein -2003-05-12 André Pönitz + * lstrings.[Ch]: compile fix - * lstrings.[Ch]: bformat() as wrappre around boost::format +2003-05-12 André Pönitz + + * lstrings.[Ch]: bformat() as wrapper around boost::format 2003-05-06 Lars Gullik Bjřnnes diff --git a/src/support/lstrings.C b/src/support/lstrings.C index 9321eac157..06853b21d4 100644 --- a/src/support/lstrings.C +++ b/src/support/lstrings.C @@ -697,7 +697,7 @@ string bformat(char const * fmt, string const & arg1, string const & arg2, string bformat(char const * fmt, string const & arg1) { - Assert(contains(fmt, "%1$s")); + lyx::Assert(contains(fmt, "%1$s")); string const str = subst(fmt, "%1$s", arg1); return subst(str, "%%", "%"); } @@ -705,8 +705,8 @@ string bformat(char const * fmt, string const & arg1) string bformat(char const * fmt, string const & arg1, string const & arg2) { - Assert(contains(fmt, "%1$s")); - Assert(contains(fmt, "%2$s")); + lyx::Assert(contains(fmt, "%1$s")); + lyx::Assert(contains(fmt, "%2$s")); string str = subst(fmt, "%1$s", arg1); str = subst(str, "%2$s", arg2); return subst(str, "%%", "%"); @@ -716,10 +716,10 @@ string bformat(char const * fmt, string const & arg1, string const & arg2) string bformat(char const * fmt, string const & arg1, string const & arg2, string const & arg3, string const & arg4) { - Assert(contains(fmt, "%1$s")); - Assert(contains(fmt, "%2$s")); - Assert(contains(fmt, "%3$s")); - Assert(contains(fmt, "%4$s")); + lyx::Assert(contains(fmt, "%1$s")); + lyx::Assert(contains(fmt, "%2$s")); + lyx::Assert(contains(fmt, "%3$s")); + lyx::Assert(contains(fmt, "%4$s")); string str = subst(fmt, "%1$s", arg1); str = subst(str, "%2$s", arg2); str = subst(str, "%3$s", arg3);