summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-04 14:00:40 +0200
committerNoel Grandin <noel@peralex.com>2013-11-11 11:21:26 +0200
commite52779d2f8722c713f72aedbf475267440d729f0 (patch)
tree0f2f15b2a7645e0b75f8057c96c90e05e1a6e7df /connectivity
parente9c4ee996d5a6bf895072613ac4e488346ee5b05 (diff)
remove unnecessary use of OUString constructor
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/evoab2/NConnection.cxx6
-rw-r--r--connectivity/workben/testmoz/main.cxx6
-rw-r--r--connectivity/workben/testmoz/mozthread.cxx10
3 files changed, 11 insertions, 11 deletions
diff --git a/connectivity/source/drivers/evoab2/NConnection.cxx b/connectivity/source/drivers/evoab2/NConnection.cxx
index b4424a6c3669..2f3309ec9378 100644
--- a/connectivity/source/drivers/evoab2/NConnection.cxx
+++ b/connectivity/source/drivers/evoab2/NConnection.cxx
@@ -44,17 +44,17 @@ OUString implGetExceptionMsg( Exception& e, const OUString& aExceptionType_ )
{
OUString aExceptionType = aExceptionType_;
if( aExceptionType.isEmpty() )
- aExceptionType = OUString("Unknown") ;
+ aExceptionType = "Unknown";
OUString aTypeLine( "\nType: " );
aTypeLine += aExceptionType;
OUString aMessageLine( "\nMessage: " );
- aMessageLine += OUString( e.Message );
+ aMessageLine += e.Message;
OUString aMsg(aTypeLine);
aMsg += aMessageLine;
- return aMsg;
+ return aMsg;
}
// Exception type unknown
diff --git a/connectivity/workben/testmoz/main.cxx b/connectivity/workben/testmoz/main.cxx
index 7f288da1f0e1..8f424cb81b3e 100644
--- a/connectivity/workben/testmoz/main.cxx
+++ b/connectivity/workben/testmoz/main.cxx
@@ -380,10 +380,10 @@ Reference< ::com::sun::star::sdbc::XConnection> TestConnected
{
case -1:
case 1: //mozilla
- url=OUString("sdbc:address:mozilla://");
+ url = "sdbc:address:mozilla://";
break;
case 2:
- url=OUString("sdbc:address:ldap://");
+ url = "sdbc:address:ldap://";
char hostname[40],basedn[40];
scanf("%s %s",hostname,basedn);
aValue.realloc(2);
@@ -397,7 +397,7 @@ Reference< ::com::sun::star::sdbc::XConnection> TestConnected
break;
case 5:
//Default LDAP AB
- url=OUString("sdbc:address:ldap://");
+ url = "sdbc:address:ldap://";
aValue.realloc(2);
aValue[0].Name = "HostName";
aValue[0].Value <<= OUString("sun-ds");
diff --git a/connectivity/workben/testmoz/mozthread.cxx b/connectivity/workben/testmoz/mozthread.cxx
index 727926772517..d7e53d7a0e93 100644
--- a/connectivity/workben/testmoz/mozthread.cxx
+++ b/connectivity/workben/testmoz/mozthread.cxx
@@ -282,7 +282,7 @@ Reference< ::com::sun::star::sdbc::XConnection> TestConnected
switch( nIndex)
{
case testLDAP:
- url=OUString("sdbc:address:ldap://");
+ url = "sdbc:address:ldap://";
aValue.realloc(2);
aValue[0].Name = "HostName";
aValue[0].Value <<= OUString("sun-ds");
@@ -290,16 +290,16 @@ Reference< ::com::sun::star::sdbc::XConnection> TestConnected
aValue[1].Value <<= OUString("dc=sun,dc=com");
break;
case testMozilla:
- url=OUString("sdbc:address:mozilla://");
+ url = "sdbc:address:mozilla://";
break;
case testOp:
- url=OUString("sdbc:address:outlook://");
+ url = "sdbc:address:outlook://";
break;
case testOe:
- url=OUString("sdbc:address:outlookexp://");
+ url = "sdbc:address:outlookexp://";
break;
default:
- url=OUString("sdbc:address:mozilla://");
+ url = "sdbc:address:mozilla://";
break;
}
pConnection =