Kaydet (Commit) d204c1a4 authored tarafından Marcos Paulo de Souza's avatar Marcos Paulo de Souza Kaydeden (comit) Olivier Hallot

Remove last RTL_CONSTASCII_* from accessibility

Change-Id: Icb8f66c9f6ad70828aa55580a1f3aae8b2af1593
Signed-off-by: 's avatarMarcos Paulo de Souza <marcos.souza.org@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/1500Reviewed-by: 's avatarOlivier Hallot <olivier.hallot@alta.org.br>
Tested-by: 's avatarOlivier Hallot <olivier.hallot@alta.org.br>
üst a7ef93ed
......@@ -125,10 +125,10 @@ Java_org_openoffice_accessibility_WindowsAccessBridgeAdapter_createMapping(JNIEn
if ( g_xUnoVirtualMachine.is() )
{
OUString sJava(RTL_CONSTASCII_USTRINGPARAM("java"));
OUString sJava("java");
uno_getEnvironment(&pJava_environment, sJava.pData, g_xUnoVirtualMachine.get());
OUString sCppu_current_lb_name(RTL_CONSTASCII_USTRINGPARAM(CPPU_CURRENT_LANGUAGE_BINDING_NAME));
OUString sCppu_current_lb_name(CPPU_CURRENT_LANGUAGE_BINDING_NAME);
uno_getEnvironment(&pUno_environment, sCppu_current_lb_name.pData, NULL);
if ( pJava_environment && pUno_environment )
......
......@@ -139,7 +139,7 @@ OUString VCLXAccessibleButton::getAccessibleName( ) throw (RuntimeException)
OUString aName( VCLXAccessibleTextComponent::getAccessibleName() );
sal_Int32 nLength = aName.getLength();
if ( nLength >= 3 && aName.matchAsciiL( RTL_CONSTASCII_STRINGPARAM("..."), nLength - 3 ) )
if ( nLength >= 3 && aName.match( "...", nLength - 3 ) )
{
if ( nLength == 3 )
{
......@@ -152,12 +152,12 @@ OUString VCLXAccessibleButton::getAccessibleName( ) throw (RuntimeException)
aName = aName.copy( 0, nLength - 3 );
}
}
else if ( nLength >= 3 && aName.matchAsciiL( RTL_CONSTASCII_STRINGPARAM("<< "), 0 ) )
else if ( nLength >= 3 && aName.match( "<< ", 0 ) )
{
// remove the leading symbols
aName = aName.copy( 3, nLength - 3 );
}
else if ( nLength >= 3 && aName.matchAsciiL( RTL_CONSTASCII_STRINGPARAM(" >>"), nLength - 3 ) )
else if ( nLength >= 3 && aName.match( " >>", nLength - 3 ) )
{
// remove the trailing symbols
aName = aName.copy( 0, nLength - 3 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment