diff --git a/cui/source/dialogs/iconcdlg.cxx b/cui/source/dialogs/iconcdlg.cxx index c4c32b57f182..520d94b26cc6 100644 --- a/cui/source/dialogs/iconcdlg.cxx +++ b/cui/source/dialogs/iconcdlg.cxx @@ -1106,7 +1106,7 @@ void IconChoiceDialog::Start_Impl() if ( aTabDlgOpt.Exists() ) { // ggf. Position aus Konfig - SetWindowState( ByteString( aTabDlgOpt.GetWindowState().getStr(), RTL_TEXTENCODING_ASCII_US ) ); + SetWindowState(rtl::OUStringToOString(aTabDlgOpt.GetWindowState().getStr(), RTL_TEXTENCODING_ASCII_US)); // initiale TabPage aus Programm/Hilfe/Konfig nActPage = (sal_uInt16)aTabDlgOpt.GetPageID(); diff --git a/cui/source/dialogs/srchxtra.cxx b/cui/source/dialogs/srchxtra.cxx index 4f8b83bc67f9..2875e4be3873 100644 --- a/cui/source/dialogs/srchxtra.cxx +++ b/cui/source/dialogs/srchxtra.cxx @@ -45,6 +45,7 @@ #include "backgrnd.hxx" #include // RID_SVXPAGE_... #include +#include // class SvxSearchFormatDialog ------------------------------------------- @@ -186,9 +187,10 @@ SvxSearchAttributeDialog::SvxSearchAttributeDialog( Window* pParent, pEntry = aAttrLB.SvTreeListBox::InsertEntry( aAttrNames.GetString(nId) ); else { - ByteString sError( "no resource for slot id\nslot = " ); - sError += ByteString::CreateFromInt32( nSlot ); - DBG_ERRORFILE( sError.GetBuffer() ); + rtl::OStringBuffer sError( + RTL_CONSTASCII_STRINGPARAM("no resource for slot id\nslot = ")); + sError.append(nSlot); + DBG_ERRORFILE(sError.getStr()); } if ( pEntry )