summaryrefslogtreecommitdiff
path: root/svtools/source/uno
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2012-02-10 23:00:44 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2012-02-10 23:01:07 +0900
commit2b1758a2dc82200468905f7865468972a691b6a3 (patch)
treec6f43ff867ccd1f73b86ea8ad8f88429d16807e7 /svtools/source/uno
parent05720546215976d8d42fa7321f455c641147db9f (diff)
Prefer equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) to equalsAscii(...)
Diffstat (limited to 'svtools/source/uno')
-rw-r--r--svtools/source/uno/unogridcolumnfacade.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/svtools/source/uno/unogridcolumnfacade.cxx b/svtools/source/uno/unogridcolumnfacade.cxx
index 62eaf317c828..47f0fe198fac 100644
--- a/svtools/source/uno/unogridcolumnfacade.cxx
+++ b/svtools/source/uno/unogridcolumnfacade.cxx
@@ -147,7 +147,7 @@ namespace svt { namespace table
//------------------------------------------------------------------------------------------------------------------
void SAL_CALL ColumnChangeMultiplexer::columnChanged( const GridColumnEvent& i_event ) throw (RuntimeException)
{
- if ( i_event.AttributeName.equalsAscii( "DataColumnIndex" ) )
+ if ( i_event.AttributeName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("DataColumnIndex")) )
{
SolarMutexGuard aGuard;
if ( m_pColumnImplementation != NULL )
@@ -157,15 +157,15 @@ namespace svt { namespace table
ColumnAttributeGroup nChangedAttributes( COL_ATTRS_NONE );
- if ( i_event.AttributeName.equalsAscii( "HorizontalAlign" ) )
+ if ( i_event.AttributeName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("HorizontalAlign")) )
nChangedAttributes |= COL_ATTRS_APPEARANCE;
- if ( i_event.AttributeName.equalsAscii( "ColumnWidth" )
- || i_event.AttributeName.equalsAscii( "MaxWidth" )
- || i_event.AttributeName.equalsAscii( "MinWidth" )
- || i_event.AttributeName.equalsAscii( "PreferredWidth" )
- || i_event.AttributeName.equalsAscii( "Resizeable" )
- || i_event.AttributeName.equalsAscii( "Flexibility" )
+ if ( i_event.AttributeName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("ColumnWidth"))
+ || i_event.AttributeName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("MaxWidth"))
+ || i_event.AttributeName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("MinWidth"))
+ || i_event.AttributeName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("PreferredWidth"))
+ || i_event.AttributeName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Resizeable"))
+ || i_event.AttributeName.equalsAsciiL(RTL_CONSTASCII_STRINGPARAM("Flexibility"))
)
nChangedAttributes |= COL_ATTRS_WIDTH;