random OUString to String conversions
Change-Id: I9cfb8e7183b9cce7c690f3a43a64b61a2aa8c754
This commit is contained in:
parent
218775e19c
commit
d08ef4d265
@ -633,7 +633,7 @@ namespace dlgprov
|
||||
ResMgr* pResMgr = SFX_APP()->GetSfxResManager();
|
||||
if( pResMgr )
|
||||
{
|
||||
String aRes( ResId(STR_ERRUNOEVENTBINDUNG, *pResMgr) );
|
||||
OUString aRes( ResId(STR_ERRUNOEVENTBINDUNG, *pResMgr) );
|
||||
OUString aQuoteChar( "\"" );
|
||||
|
||||
OUString aOURes = aRes;
|
||||
|
@ -163,8 +163,7 @@ RehearseTimingsActivity::RehearseTimingsActivity( const SlideShowContext& rConte
|
||||
blackHole.SetMapMode( MAP_PIXEL );
|
||||
Rectangle rect;
|
||||
const FontMetric metric( blackHole.GetFontMetric() );
|
||||
blackHole.GetTextBoundRect(
|
||||
rect, String("XX:XX:XX") );
|
||||
blackHole.GetTextBoundRect( rect, OUString("XX:XX:XX") );
|
||||
maSpriteSizePixel.setX( rect.getWidth() * 12 / 10 );
|
||||
maSpriteSizePixel.setY( metric.GetLineHeight() * 11 / 10 );
|
||||
mnYOffset = (metric.GetAscent() + (metric.GetLineHeight() / 20));
|
||||
|
@ -20,14 +20,14 @@
|
||||
|
||||
namespace CppUnit {
|
||||
template<>
|
||||
struct assertion_traits<String>
|
||||
struct assertion_traits<OUString>
|
||||
{
|
||||
static bool equal(const String& x, const String& y)
|
||||
static bool equal(const OUString& x, const OUString& y)
|
||||
{
|
||||
return x == y;
|
||||
}
|
||||
|
||||
static std::string toString(const String& x)
|
||||
static std::string toString(const OUString& x)
|
||||
{
|
||||
OStringStream ost;
|
||||
ost << OUStringToOString(x, RTL_TEXTENCODING_UTF8).getStr();
|
||||
|
@ -819,7 +819,7 @@ void SmMathConfig::StripFontFormatList( const std::vector< SmSym > &rSymbols )
|
||||
SmFontFormatList &rFntFmtList = GetFontFormatList();
|
||||
size_t nCnt = rFntFmtList.GetCount();
|
||||
SmFontFormat *pTmpFormat = new SmFontFormat[ nCnt ];
|
||||
String *pId = new String [ nCnt ];
|
||||
OUString *pId = new OUString [ nCnt ];
|
||||
size_t k;
|
||||
for (k = 0; k < nCnt; ++k)
|
||||
{
|
||||
|
@ -135,7 +135,7 @@ void SwMacrosTest::testVba()
|
||||
sMsg.append ( aFileName );
|
||||
CPPUNIT_ASSERT_MESSAGE( OUStringToOString( sMsg.makeStringAndClear(), RTL_TEXTENCODING_UTF8 ).getStr(), xComponent.is() );
|
||||
|
||||
String sUrl = testInfo[i].sMacroUrl;
|
||||
OUString sUrl = testInfo[i].sMacroUrl;
|
||||
Any aRet;
|
||||
Sequence< sal_Int16 > aOutParamIndex;
|
||||
Sequence< Any > aOutParam;
|
||||
|
Loading…
x
Reference in New Issue
Block a user