diff options
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx b/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx index 1e0039ecc6e1..5237f64e9b45 100644 --- a/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx +++ b/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx @@ -37,6 +37,7 @@ #include <sal/log.hxx> #include <string_view> +#include <utility> #include <vector> #include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> @@ -56,7 +57,6 @@ using osl::MutexGuard; using com::sun::star::beans::XPropertySet; using com::sun::star::uno::Any; -using com::sun::star::uno::makeAny; using com::sun::star::uno::UNO_QUERY; using com::sun::star::uno::Reference; using com::sun::star::uno::Sequence; @@ -73,14 +73,14 @@ IndexColumns::IndexColumns( const ::rtl::Reference< comphelper::RefCountedMutex > & refMutex, const css::uno::Reference< css::sdbc::XConnection > & origin, ConnectionSettings *pSettings, - const OUString &schemaName, - const OUString &tableName, - const OUString &indexName, + OUString schemaName, + OUString tableName, + OUString indexName, const css::uno::Sequence< OUString > &columns ) - : Container( refMutex, origin, pSettings, "INDEX_COLUMN" ), - m_schemaName( schemaName ), - m_tableName( tableName ), - m_indexName( indexName ), + : Container( refMutex, origin, pSettings, u"INDEX_COLUMN"_ustr ), + m_schemaName(std::move( schemaName )), + m_tableName(std::move( tableName )), + m_indexName(std::move( indexName )), m_columns( columns ) {} @@ -131,7 +131,7 @@ void IndexColumns::refresh() columnMetaData2SDBCX( pIndexColumn.get(), xRow ); pIndexColumn->setPropertyValue_NoBroadcast_public( - st.IS_ASCENDING , makeAny( false ) ); + st.IS_ASCENDING , Any( false ) ); m_values[ index ] <<= prop; m_name2index[ columnName ] = index; @@ -152,7 +152,7 @@ void IndexColumns::appendByDescriptor( const css::uno::Reference< css::beans::XPropertySet >& /*future*/ ) { throw css::sdbc::SQLException( - "SDBC-POSTGRESQL: IndexesColumns.appendByDescriptor not yet implemented", + u"SDBC-POSTGRESQL: IndexesColumns.appendByDescriptor not yet implemented"_ustr, *this, OUString(), 1, Any() ); // osl::MutexGuard guard( m_xMutex->GetMutex() ); // Statics & st = getStatics(); @@ -166,7 +166,7 @@ void IndexColumns::appendByDescriptor( void IndexColumns::dropByName( const OUString& ) { throw css::sdbc::SQLException( - "SDBC-POSTGRESQL: IndexesColumns.dropByName not yet implemented", + u"SDBC-POSTGRESQL: IndexesColumns.dropByName not yet implemented"_ustr, *this, OUString(), 1, Any() ); // String2IntMap::const_iterator ii = m_name2index.find( elementName ); // if( ii == m_name2index.end() ) @@ -188,7 +188,7 @@ void IndexColumns::dropByName( const OUString& ) void IndexColumns::dropByIndex( sal_Int32 ) { throw css::sdbc::SQLException( - "SDBC-POSTGRESQL: IndexesColumns.dropByIndex not yet implemented", + u"SDBC-POSTGRESQL: IndexesColumns.dropByIndex not yet implemented"_ustr, *this, OUString(), 1, Any() ); // osl::MutexGuard guard( m_xMutex->GetMutex() ); // if( index < 0 || index >= m_values.getLength() ) |