mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Alfredo's compile fix
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6954 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
d31244b5e2
commit
b21a69d998
@ -1,7 +1,10 @@
|
||||
2003-05-12 Alfredo Braunstein <abraunst@libero.it>
|
||||
|
||||
2003-05-12 André Pönitz <poenitz@gmx.net>
|
||||
* lstrings.[Ch]: compile fix
|
||||
|
||||
* lstrings.[Ch]: bformat() as wrappre around boost::format
|
||||
2003-05-12 André Pönitz <poenitz@gmx.net>
|
||||
|
||||
* lstrings.[Ch]: bformat() as wrapper around boost::format
|
||||
|
||||
2003-05-06 Lars Gullik Bjønnes <larsbj@gullik.net>
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user