[Libreoffice-commits] .: extensions/source
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Jul 18 04:25:43 PDT 2011
extensions/source/scanner/sanedlg.cxx | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit 867f395ffe637948e5b07ae8d444562b8870b846
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Jul 17 22:52:33 2011 +0100
ByteString->rtl::OStringBuffer
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index a0aedbb..9d6ef73 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -39,6 +39,7 @@
#include <grid.hxx>
#include <math.h>
#include <sal/macros.h>
+#include <rtl/strbuf.hxx>
ResId SaneResId( sal_uInt32 nID )
{
@@ -1270,9 +1271,10 @@ void SaneDlg::SaveState()
sal_Bool bValue;
if( mrSane.GetOptionValue( nOption, bValue ) )
{
- ByteString aString( "BOOL=" );
- aString += ByteString::CreateFromInt32(bValue);
- aConfig.WriteKey( aOption, aString );
+ rtl::OStringBuffer aString(RTL_CONSTASCII_STRINGPARAM(
+ "BOOL="));
+ aString.append(static_cast<sal_Int32>(bValue));
+ aConfig.WriteKey(aOption, aString.makeStringAndClear());
}
}
break;
More information about the Libreoffice-commits
mailing list