summaryrefslogtreecommitdiffstats
path: root/connectivity/source
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source')
-rw-r--r--connectivity/source/drivers/mork/MConnection.cxx2
-rw-r--r--connectivity/source/drivers/postgresql/pq_tools.cxx10
2 files changed, 1 insertions, 11 deletions
diff --git a/connectivity/source/drivers/mork/MConnection.cxx b/connectivity/source/drivers/mork/MConnection.cxx
index 201fa7a9a7ad..076f120c2e16 100644
--- a/connectivity/source/drivers/mork/MConnection.cxx
+++ b/connectivity/source/drivers/mork/MConnection.cxx
@@ -67,7 +67,6 @@ void OConnection::construct(const OUString& url)
// Get Scheme
nLen = aAddrbookURI.indexOf(':');
OUString aAddrbookScheme;
- OUString sAdditionalInfo;
if ( nLen == -1 )
{
// There isn't any subschema: - but could be just subschema
@@ -84,7 +83,6 @@ void OConnection::construct(const OUString& url)
else
{
aAddrbookScheme = aAddrbookURI.copy(0, nLen);
- sAdditionalInfo = aAddrbookURI.copy( nLen + 1 );
}
SAL_INFO("connectivity.mork", "URI = " << aAddrbookURI );
diff --git a/connectivity/source/drivers/postgresql/pq_tools.cxx b/connectivity/source/drivers/postgresql/pq_tools.cxx
index 59377fe26324..46e66310cadb 100644
--- a/connectivity/source/drivers/postgresql/pq_tools.cxx
+++ b/connectivity/source/drivers/postgresql/pq_tools.cxx
@@ -1077,19 +1077,11 @@ void extractNameValuePairsFromInsert( String2StringMap & map, const OString & la
int n = 2;
// printf( "1a\n" );
- // extract table name
- OString tableName;
+ // skip table name
if( vec[n+1].equalsIgnoreAsciiCase( "." ) )
{
- tableName = vec[n];
- tableName += vec[n+1];
- tableName += vec[n+2];
n +=2;
}
- else
- {
- tableName = vec[n];
- }
std::vector< OString > names;
n ++;