From 61861c8c890120c1eb712e509a0bd17d68095362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Mon, 19 May 2003 14:13:50 +0000 Subject: [PATCH] ... and change the remaining char const * fmt to string const & fmt git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6978 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/support/ChangeLog | 3 +++ src/support/lstrings.C | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/support/ChangeLog b/src/support/ChangeLog index 423337e9a2..738e6c8d30 100644 --- a/src/support/ChangeLog +++ b/src/support/ChangeLog @@ -3,6 +3,9 @@ * lstrings.C: add missing implementation of three-arg bformat + * lstrings.C: change rest of char * fmt -> string const & fmt + + 2003-05-15 André Pönitz * lstrings.[Ch]: use string const & instead of char const * for format diff --git a/src/support/lstrings.C b/src/support/lstrings.C index 1b7b05fb23..29766f641e 100644 --- a/src/support/lstrings.C +++ b/src/support/lstrings.C @@ -724,7 +724,7 @@ string bformat(string const & fmt, string const & arg1, string const & arg2) } -string bformat(char const * fmt, string const & arg1, string const & arg2, +string bformat(string const & fmt, string const & arg1, string const & arg2, string const & arg3) { lyx::Assert(contains(fmt, "%1$s")); @@ -737,7 +737,7 @@ string bformat(char const * fmt, string const & arg1, string const & arg2, } -string bformat(char const * fmt, string const & arg1, string const & arg2, +string bformat(string const & fmt, string const & arg1, string const & arg2, string const & arg3, string const & arg4) { lyx::Assert(contains(fmt, "%1$s"));