summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorSzabolcs Dezsi <dezsiszabi@hotmail.com>2012-04-06 15:31:24 +0200
committerJan Holesovsky <kendy@suse.cz>2012-04-06 20:03:41 +0200
commit99268dbe1fc25bc2d04eefa1a9f7e2cf7b398065 (patch)
treef9865652a2a4fd5d1452a4cbdc22028c21ad3894 /ucb
parent7acf99de38a74673a4e57d2b7862757029ee289e (diff)
Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used: find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *) *{$/\1\2 ( \3 == \4 ) {/' \{\} \;
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/gvfs/gvfs_content.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/ucb/source/ucp/gvfs/gvfs_content.cxx b/ucb/source/ucp/gvfs/gvfs_content.cxx
index 13f764088edb..51db0a3bd70e 100644
--- a/ucb/source/ucp/gvfs/gvfs_content.cxx
+++ b/ucb/source/ucp/gvfs/gvfs_content.cxx
@@ -609,7 +609,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
for( sal_Int32 n = 0; n < nProps; ++n ) {
const beans::Property& rProp = pProps[ n ];
- if (rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Title" ) ) ) {
+ if ( rProp.Name == "Title" ) {
if (m_info.name && m_info.name[0] == '/')
g_warning ("Odd NFS title on item '%s' == '%s'",
getURI(), m_info.name);
@@ -619,20 +619,20 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
else if ( rProp.Name == "ContentType" )
xRow->appendString( rProp, getContentType () );
- else if (rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "IsDocument" ) ) ) {
+ else if ( rProp.Name == "IsDocument" ) {
if (m_info.valid_fields & GNOME_VFS_FILE_INFO_FIELDS_TYPE)
xRow->appendBoolean( rProp, ( m_info.type == GNOME_VFS_FILE_TYPE_REGULAR ||
m_info.type == GNOME_VFS_FILE_TYPE_UNKNOWN ) );
else
xRow->appendVoid( rProp );
}
- else if (rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "IsFolder" ) ) ) {
+ else if ( rProp.Name == "IsFolder" ) {
if (m_info.valid_fields & GNOME_VFS_FILE_INFO_FIELDS_TYPE)
xRow->appendBoolean( rProp, ( m_info.type == GNOME_VFS_FILE_TYPE_DIRECTORY ) );
else
xRow->appendVoid( rProp );
}
- else if (rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "IsReadOnly" ) ) ) {
+ else if ( rProp.Name == "IsReadOnly" ) {
GnomeVFSFileInfo* fileInfo = gnome_vfs_file_info_new ();
@@ -652,7 +652,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
xRow->appendVoid( rProp );
gnome_vfs_file_info_unref (fileInfo);
}
- else if (rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Size" ) ) ) {
+ else if ( rProp.Name == "Size" ) {
if (m_info.valid_fields & GNOME_VFS_FILE_INFO_FIELDS_SIZE)
xRow->appendLong( rProp, m_info.size );
else
@@ -665,21 +665,21 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "IsCompactDisk" ) ) )
xRow->appendBoolean( rProp, sal_False );
- else if (rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "DateCreated" ) ) ) {
+ else if ( rProp.Name == "DateCreated" ) {
if (m_info.valid_fields & GNOME_VFS_FILE_INFO_FIELDS_CTIME)
xRow->appendTimestamp( rProp, getDateFromUnix( m_info.ctime ) );
else
xRow->appendVoid( rProp );
}
- else if (rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "DateModified" ) ) ) {
+ else if ( rProp.Name == "DateModified" ) {
if (m_info.valid_fields & GNOME_VFS_FILE_INFO_FIELDS_MTIME)
xRow->appendTimestamp( rProp, getDateFromUnix( m_info.mtime ) );
else
xRow->appendVoid( rProp );
}
- else if (rProp.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "MediaType" ) ) ) {
+ else if ( rProp.Name == "MediaType" ) {
// We do this by sniffing in gnome-vfs; rather expensively.
#ifdef DEBUG
g_warning ("FIXME: Requested mime-type - an expensive op. indeed!");
@@ -804,7 +804,7 @@ uno::Sequence< uno::Any > Content::setPropertyValues(
rValue.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "CreatableContentsInfo" ) ) )
aRet[ n ] <<= getReadOnlyException( this );
- else if ( rValue.Name.equalsAsciiL( RTL_CONSTASCII_STRINGPARAM( "Title" ) ) ) {
+ else if ( rValue.Name == "Title" ) {
if ( rValue.Value >>= aNewTitle ) {
if ( aNewTitle.isEmpty() )
aRet[ n ] <<= lang::IllegalArgumentException