diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-01-14 19:22:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-01-14 20:27:33 +0000 |
commit | fffb674c1e5352048caeae325ecdc6428cb210bc (patch) | |
tree | 52e4a6988549c8168acac2ee7ae8a86d449dae89 /connectivity/source/drivers/postgresql/pq_xtables.cxx | |
parent | 2b407adc78c97863223653cb24e7a7226ae1e6cf (diff) |
coverity#1371289 avoid the need for an assignment
Change-Id: I7f9b8d21652c79642f9a2f916ad0609c8abd430b
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xtables.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_xtables.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xtables.cxx b/connectivity/source/drivers/postgresql/pq_xtables.cxx index 63e6c6aeebf9..cbd5c3f2b695 100644 --- a/connectivity/source/drivers/postgresql/pq_xtables.cxx +++ b/connectivity/source/drivers/postgresql/pq_xtables.cxx @@ -270,7 +270,7 @@ void Tables::appendByDescriptor( OUString description = extractStringProperty( descriptor, st.DESCRIPTION ); if( !description.isEmpty() ) { - buf = OUStringBuffer( 128 ); + buf.truncate(); buf.append( "COMMENT ON TABLE" ); bufferQuoteQualifiedIdentifier( buf, schema, name, m_pSettings ); buf.append( "IS " ); @@ -292,7 +292,7 @@ void Tables::appendByDescriptor( description = extractStringProperty( column,st.DESCRIPTION ); if( !description.isEmpty() ) { - buf = OUStringBuffer( 128 ); + buf.truncate(); buf.append( "COMMENT ON COLUMN " ); bufferQuoteQualifiedIdentifier( buf, schema, name, extractStringProperty( column, st.NAME ), m_pSettings ); |