testtools: Use appropriate OUString functions on string constants
Change-Id: I5cb34d95e2a59ff6a3f5189beb40b7dbf574dc29
This commit is contained in:
@@ -1150,7 +1150,7 @@ sal_Int32 TestBridgeImpl::run( const Sequence< OUString > & rArgs )
|
|||||||
Reference< XInterface > xOriginal;
|
Reference< XInterface > xOriginal;
|
||||||
bool remote;
|
bool remote;
|
||||||
sal_Int32 i;
|
sal_Int32 i;
|
||||||
if( rArgs.getLength() > 1 && rArgs[0].equalsAscii( "-u" ) )
|
if( rArgs.getLength() > 1 && rArgs[0] == "-u" )
|
||||||
{
|
{
|
||||||
remote = true;
|
remote = true;
|
||||||
i = 2;
|
i = 2;
|
||||||
|
@@ -63,9 +63,7 @@ CurrentContext::~CurrentContext() {}
|
|||||||
css::uno::Any CurrentContext::getValueByName(OUString const & Name)
|
css::uno::Any CurrentContext::getValueByName(OUString const & Name)
|
||||||
throw (css::uno::RuntimeException, std::exception)
|
throw (css::uno::RuntimeException, std::exception)
|
||||||
{
|
{
|
||||||
return Name == KEY
|
return Name == KEY ? css::uno::makeAny(OUString(VALUE)) : css::uno::Any();
|
||||||
? css::uno::makeAny(OUString::createFromAscii(VALUE))
|
|
||||||
: css::uno::Any();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -100,8 +98,7 @@ bool testtools::bridgetest::CurrentContextChecker::performCheck(
|
|||||||
if (!context.is()) {
|
if (!context.is()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
css::uno::Any a(
|
css::uno::Any a(context->getValueByName(KEY));
|
||||||
context->getValueByName(OUString::createFromAscii(KEY)));
|
|
||||||
if (a.getValueType() != ::cppu::UnoType< OUString >::get()) {
|
if (a.getValueType() != ::cppu::UnoType< OUString >::get()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user