diff options
author | Jochen Nitschke <j.nitschke+logerrit@ok.de> | 2016-09-15 11:35:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-09-15 14:10:07 +0000 |
commit | 32e45a6f2a6b35ad72796387633b6b88ad117232 (patch) | |
tree | afc6ceacabdae41e01c6f01c6c7f4c64e3e0c182 /connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx | |
parent | 437377bbda0ac6b0be3c4f6fac59a4c782eecef8 (diff) |
convert LogLevel constants to scoped enum
rename some variables to distinguish them from type name
use enumarray for log level strings
remove unused DATA member
Change-Id: Id3c38b82e679b3aede5ce790735443e769d5f236
Reviewed-on: https://gerrit.libreoffice.org/28920
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx')
-rw-r--r-- | connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx b/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx index 74e2d58ca263..5446e5da2132 100644 --- a/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx +++ b/connectivity/source/drivers/postgresql/pq_xindexcolumns.cxx @@ -105,12 +105,12 @@ void IndexColumns::refresh() { try { - if( isLog( m_pSettings, LogLevel::INFO ) ) + if (isLog(m_pSettings, LogLevel::Info)) { OStringBuffer buf; buf.append( "sdbcx.IndexColumns get refreshed for index " ); buf.append( OUStringToOString( m_indexName, m_pSettings->encoding ) ); - log( m_pSettings, LogLevel::INFO, buf.makeStringAndClear().getStr() ); + log(m_pSettings, LogLevel::Info, buf.makeStringAndClear().getStr()); } osl::MutexGuard guard( m_refMutex->mutex ); |