String -> OUString
Change-Id: I18b79fa866c21a8036a25c05fbc13c1d72e542aa
This commit is contained in:
parent
212f0e9f00
commit
f95d418d12
@ -23,7 +23,6 @@
|
||||
#include <vcl/fpicker.hrc>
|
||||
#include <vcl/svapp.hxx>
|
||||
#include <tools/resmgr.hxx>
|
||||
#include <tools/string.hxx>
|
||||
#include <com/sun/star/ui/dialogs/CommonFilePickerElementIds.hpp>
|
||||
#include <com/sun/star/ui/dialogs/ExtendedFilePickerElementIds.hpp>
|
||||
|
||||
@ -155,8 +154,7 @@ public:
|
||||
|
||||
NSString* getResString( sal_Int16 aId )
|
||||
{
|
||||
String aResString;
|
||||
OUString aResOUString;
|
||||
OUString aResString;
|
||||
|
||||
const SolarMutexGuard aGuard;
|
||||
|
||||
@ -167,22 +165,20 @@ public:
|
||||
// translate the control id to a resource id
|
||||
sal_Int16 aResId = CtrlIdToResId( aId );
|
||||
if ( aResId > -1 )
|
||||
aResString = String( ResId( aResId, *m_ResMgr ) );
|
||||
aResString = ResId( aResId, *m_ResMgr );
|
||||
else
|
||||
{
|
||||
aResId = OtherCtrlIdToResId( aId );
|
||||
if ( aResId > -1 ) {
|
||||
aResString = String( ResId( aResId, *m_OtherResMgr ) );
|
||||
aResString = ResId( aResId, *m_OtherResMgr );
|
||||
}
|
||||
}
|
||||
if ( aResId > -1 )
|
||||
aResOUString = OUString( aResString );
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
}
|
||||
|
||||
return [NSString stringWithOUString:aResOUString];
|
||||
return [NSString stringWithOUString:aResString];
|
||||
}
|
||||
|
||||
public:
|
||||
|
Loading…
x
Reference in New Issue
Block a user