summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-13 16:14:08 +0200
committerNoel Grandin <noel@peralex.com>2013-11-14 08:17:30 +0200
commitd9648d3567e60f4482984a25e2b78e8a2fae52e3 (patch)
tree0edfb9386344f4745704d6d3b3763a7ebccfe0fb /dbaccess
parent531c2dc791098d3d335abc0ddd055780fe3b7f2a (diff)
remove unnecessary sal_Unicode casts in DBACCESS module
Change-Id: I4c4ab5d672e994b1e8e3beac027d3f4e8f700714
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/core/dataaccess/documentcontainer.cxx2
-rw-r--r--dbaccess/source/core/dataaccess/documentdefinition.cxx4
-rw-r--r--dbaccess/source/core/recovery/dbdocrecovery.cxx8
-rw-r--r--dbaccess/source/core/recovery/storagetextstream.cxx2
-rw-r--r--dbaccess/source/ext/macromigration/migrationlog.cxx12
-rw-r--r--dbaccess/source/ui/app/AppDetailPageHelper.cxx2
-rw-r--r--dbaccess/source/ui/browser/unodatbr.cxx2
-rw-r--r--dbaccess/source/ui/control/tabletree.cxx4
-rw-r--r--dbaccess/source/ui/querydesign/QueryDesignView.cxx8
-rw-r--r--dbaccess/source/ui/querydesign/querycontroller.cxx4
10 files changed, 24 insertions, 24 deletions
diff --git a/dbaccess/source/core/dataaccess/documentcontainer.cxx b/dbaccess/source/core/dataaccess/documentcontainer.cxx
index bfacec0188fe..11bba72a4d93 100644
--- a/dbaccess/source/core/dataaccess/documentcontainer.cxx
+++ b/dbaccess/source/core/dataaccess/documentcontainer.cxx
@@ -642,7 +642,7 @@ OUString SAL_CALL ODocumentContainer::composeHierarchicalName( const OUString& i
{
OUStringBuffer aBuffer;
aBuffer.append( getHierarchicalName() );
- aBuffer.append( sal_Unicode( '/' ) );
+ aBuffer.append( '/' );
aBuffer.append( i_rRelativeName );
return aBuffer.makeStringAndClear();
}
diff --git a/dbaccess/source/core/dataaccess/documentdefinition.cxx b/dbaccess/source/core/dataaccess/documentdefinition.cxx
index 221d3c8d30e3..48e035c75801 100644
--- a/dbaccess/source/core/dataaccess/documentdefinition.cxx
+++ b/dbaccess/source/core/dataaccess/documentdefinition.cxx
@@ -521,7 +521,7 @@ void SAL_CALL ODocumentDefinition::getFastPropertyValue( Any& o_rValue, sal_Int3
{
OUStringBuffer aBuffer;
aBuffer.append( ODatabaseModelImpl::getObjectContainerStorageName( m_bForm ? ODatabaseModelImpl::E_FORM : ODatabaseModelImpl::E_REPORT ) );
- aBuffer.append( sal_Unicode( '/' ) );
+ aBuffer.append( '/' );
aBuffer.append( m_pImpl->m_aProps.sPersistentName );
sPersistentPath = aBuffer.makeStringAndClear();
}
@@ -1936,7 +1936,7 @@ OUString SAL_CALL ODocumentDefinition::composeHierarchicalName( const OUString&
{
OUStringBuffer aBuffer;
aBuffer.append( getHierarchicalName() );
- aBuffer.append( sal_Unicode( '/' ) );
+ aBuffer.append( '/' );
aBuffer.append( i_rRelativeName );
return aBuffer.makeStringAndClear();
}
diff --git a/dbaccess/source/core/recovery/dbdocrecovery.cxx b/dbaccess/source/core/recovery/dbdocrecovery.cxx
index f3de5ebba01b..2708589c030b 100644
--- a/dbaccess/source/core/recovery/dbdocrecovery.cxx
+++ b/dbaccess/source/core/recovery/dbdocrecovery.cxx
@@ -79,15 +79,15 @@ namespace dbaccess
static void lcl_getPersistentRepresentation( const MapStringToCompDesc::value_type& i_rComponentDesc, OUStringBuffer& o_rBuffer )
{
o_rBuffer.append( i_rComponentDesc.first );
- o_rBuffer.append( sal_Unicode( '=' ) );
+ o_rBuffer.append( '=' );
o_rBuffer.append( i_rComponentDesc.second.sName );
- o_rBuffer.append( sal_Unicode( ',' ) );
+ o_rBuffer.append( ',' );
o_rBuffer.append( sal_Unicode( i_rComponentDesc.second.bForEditing ? '1' : '0' ) );
}
static bool lcl_extractCompDesc( const OUString& i_rIniLine, OUString& o_rStorName, SubComponentDescriptor& o_rCompDesc )
{
- const sal_Int32 nEqualSignPos = i_rIniLine.indexOf( sal_Unicode( '=' ) );
+ const sal_Int32 nEqualSignPos = i_rIniLine.indexOf( '=' );
if ( nEqualSignPos < 1 )
{
OSL_FAIL( "lcl_extractCompDesc: invalid map file entry - unexpected pos of '='" );
@@ -95,7 +95,7 @@ namespace dbaccess
}
o_rStorName = i_rIniLine.copy( 0, nEqualSignPos );
- const sal_Int32 nCommaPos = i_rIniLine.lastIndexOf( sal_Unicode( ',' ) );
+ const sal_Int32 nCommaPos = i_rIniLine.lastIndexOf( ',' );
if ( nCommaPos != i_rIniLine.getLength() - 2 )
{
OSL_FAIL( "lcl_extractCompDesc: invalid map file entry - unexpected pos of ','" );
diff --git a/dbaccess/source/core/recovery/storagetextstream.cxx b/dbaccess/source/core/recovery/storagetextstream.cxx
index c835c2134977..05822b651eee 100644
--- a/dbaccess/source/core/recovery/storagetextstream.cxx
+++ b/dbaccess/source/core/recovery/storagetextstream.cxx
@@ -60,7 +60,7 @@ namespace dbaccess
static const OUString& lcl_getLineFeed()
{
- static const OUString s_sLineFeed( sal_Unicode( '\n' ) );
+ static const OUString s_sLineFeed( '\n' );
return s_sLineFeed;
}
}
diff --git a/dbaccess/source/ext/macromigration/migrationlog.cxx b/dbaccess/source/ext/macromigration/migrationlog.cxx
index 6f476ae4d022..e17ec8db756b 100644
--- a/dbaccess/source/ext/macromigration/migrationlog.cxx
+++ b/dbaccess/source/ext/macromigration/migrationlog.cxx
@@ -363,18 +363,18 @@ namespace dbmm
++error
)
{
- _rBuffer.append( sal_Unicode( '-' ) );
- _rBuffer.append( sal_Unicode( ' ' ) );
+ _rBuffer.append( '-' );
+ _rBuffer.append( ' ' );
lcl_appendErrorDescription( _rBuffer, *error );
- _rBuffer.append( sal_Unicode( '\n' ) );
+ _rBuffer.append( '\n' );
if ( !error->aCaughtException.hasValue() )
continue;
_rBuffer.append( sException );
_rBuffer.append( ::comphelper::anyToString( error->aCaughtException ) );
- _rBuffer.append( sal_Unicode( '\n' ) );
- _rBuffer.append( sal_Unicode( '\n' ) );
+ _rBuffer.append( '\n' );
+ _rBuffer.append( '\n' );
}
}
}
@@ -440,7 +440,7 @@ namespace dbmm
aBuffer.append( sMovedLib + "\n" );
}
- aBuffer.append( sal_Unicode( '\n' ) );
+ aBuffer.append( '\n' );
}
}
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
index 9e360d9a67bf..1366981564de 100644
--- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx
+++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx
@@ -394,7 +394,7 @@ void OAppDetailPageHelper::describeCurrentSelectionForType( const ElementType _e
{
OUStringBuffer buffer;
buffer.append( pList->GetEntryText( pParent ) );
- buffer.append( sal_Unicode( '/' ) );
+ buffer.append( '/' );
buffer.append( sName );
sName = buffer.makeStringAndClear();
diff --git a/dbaccess/source/ui/browser/unodatbr.cxx b/dbaccess/source/ui/browser/unodatbr.cxx
index ee970360925e..556599d3a669 100644
--- a/dbaccess/source/ui/browser/unodatbr.cxx
+++ b/dbaccess/source/ui/browser/unodatbr.cxx
@@ -2570,7 +2570,7 @@ bool SbaTableQueryBrowser::implSelect( SvTreeListEntry* _pEntry )
SvTreeListEntry* pTemp = pContainer;
while( m_pTreeModel->GetParent(pTemp) != pConnection )
{
- sNameBuffer.insert(0,sal_Unicode('/'));
+ sNameBuffer.insert(0,'/');
pString = (SvLBoxString*)pTemp->GetFirstItem(SV_ITEM_ID_BOLDLBSTRING);
OSL_ENSURE(pString,"There must be a string item!");
sNameBuffer.insert(0,pString->GetText());
diff --git a/dbaccess/source/ui/control/tabletree.cxx b/dbaccess/source/ui/control/tabletree.cxx
index e8a4bb0c097f..8b1185240403 100644
--- a/dbaccess/source/ui/control/tabletree.cxx
+++ b/dbaccess/source/ui/control/tabletree.cxx
@@ -500,7 +500,7 @@ NamedDatabaseObject OTableTreeListBox::describeObject( SvTreeListEntry* _pEntry
if ( nParentEntryType == DatabaseObjectContainer::SCHEMA )
{
buffer.append( GetEntryText( pParent ) );
- buffer.append( sal_Unicode( '.' ) );
+ buffer.append( '.' );
}
buffer.append( GetEntryText( _pEntry ) );
}
@@ -509,7 +509,7 @@ NamedDatabaseObject OTableTreeListBox::describeObject( SvTreeListEntry* _pEntry
if ( nParentEntryType == DatabaseObjectContainer::CATALOG )
{
buffer.append( GetEntryText( pParent ) );
- buffer.append( sal_Unicode( '.' ) );
+ buffer.append( '.' );
}
buffer.append( GetEntryText( _pEntry ) );
}
diff --git a/dbaccess/source/ui/querydesign/QueryDesignView.cxx b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
index ed479366debb..678bd44314c6 100644
--- a/dbaccess/source/ui/querydesign/QueryDesignView.cxx
+++ b/dbaccess/source/ui/querydesign/QueryDesignView.cxx
@@ -860,7 +860,7 @@ namespace
if (!rRetStr.isEmpty()) // are there conditions on the field?
rRetStr.append(C_OR);
else // open bracket for the OR branch
- rRetStr.append(sal_Unicode('('));
+ rRetStr.append('(');
rRetStr.append(aWhereStr);
}
if (!aHavingStr.isEmpty())
@@ -869,15 +869,15 @@ namespace
if (!rHavingStr.isEmpty()) // are there conditions on the field?
rHavingStr.append(C_OR);
else // Open bracket for the OR branch
- rHavingStr.append(sal_Unicode('('));
+ rHavingStr.append('(');
rHavingStr.append(aHavingStr);
}
}
if (!rRetStr.isEmpty())
- rRetStr.append(sal_Unicode(')')); // close bracket for the OR branch
+ rRetStr.append(')'); // close bracket for the OR branch
if (!rHavingStr.isEmpty())
- rHavingStr.append(sal_Unicode(')')); // close bracket for the OR branch
+ rHavingStr.append(')'); // close bracket for the OR branch
}
catch(SQLException&)
{
diff --git a/dbaccess/source/ui/querydesign/querycontroller.cxx b/dbaccess/source/ui/querydesign/querycontroller.cxx
index af1d3809c75a..f1b4e594054b 100644
--- a/dbaccess/source/ui/querydesign/querycontroller.cxx
+++ b/dbaccess/source/ui/querydesign/querycontroller.cxx
@@ -1733,11 +1733,11 @@ static OUString concatComment( const OUString& rQuery, const ::std::vector< Comm
for ( ; i < nComments; ++i)
{
if (!bNewLine)
- aBuf.append( sal_Unicode(' '));
+ aBuf.append( ' ');
aBuf.append( rComments[i].maComment);
if (rComments[i].mbLastOnLine)
{
- aBuf.append( sal_Unicode('\n'));
+ aBuf.append( '\n');
bNewLine = true;
}
else