diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-18 13:34:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-18 20:38:03 +0100 |
commit | 386bb99bf666c341af51df11ce11fa8d7d95a8ed (patch) | |
tree | 7af84948a91243fd76f8b1d16bd3cda688b4d375 /connectivity/source | |
parent | feb5df31d4c27d53746d0bb25b5ff06c466d9db7 (diff) |
sal_Char->char in connectivity
Change-Id: Ie32cbef9b03d69044c401f79bc737cde6dd0ed5d
Reviewed-on: https://gerrit.libreoffice.org/85396
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/source')
46 files changed, 105 insertions, 106 deletions
diff --git a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx index ce61da75cb20..98bc649dd320 100644 --- a/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx +++ b/connectivity/source/commontools/FDatabaseMetaDataResultSet.cxx @@ -893,7 +893,7 @@ extern "C" { -SAL_DLLPUBLIC_EXPORT void* dbtools_component_getFactory(const sal_Char* implName, void* serviceManager, void* registryKey) +SAL_DLLPUBLIC_EXPORT void* dbtools_component_getFactory(const char* implName, void* serviceManager, void* registryKey) { return cppu::component_getFactoryHelper(implName, serviceManager, registryKey, entries); } diff --git a/connectivity/source/commontools/RowFunctionParser.cxx b/connectivity/source/commontools/RowFunctionParser.cxx index 44bd04a080dd..d158994d5b5a 100644 --- a/connectivity/source/commontools/RowFunctionParser.cxx +++ b/connectivity/source/commontools/RowFunctionParser.cxx @@ -125,7 +125,7 @@ public: // FUNCTION PARSER -typedef const sal_Char* StringIteratorT; +typedef const char* StringIteratorT; struct ParserContext { diff --git a/connectivity/source/commontools/dbmetadata.cxx b/connectivity/source/commontools/dbmetadata.cxx index 6d539a599f43..3d0a6f562223 100644 --- a/connectivity/source/commontools/dbmetadata.cxx +++ b/connectivity/source/commontools/dbmetadata.cxx @@ -112,7 +112,7 @@ namespace dbtools } - bool lcl_getDriverSetting( const sal_Char* _asciiName, const DatabaseMetaData_Impl& _metaData, Any& _out_setting ) + bool lcl_getDriverSetting( const char* _asciiName, const DatabaseMetaData_Impl& _metaData, Any& _out_setting ) { lcl_checkConnected( _metaData ); const ::comphelper::NamedValueCollection& rDriverMetaData = _metaData.aDriverConfig.getMetaData( _metaData.xConnectionMetaData->getURL() ); @@ -123,7 +123,7 @@ namespace dbtools } - bool lcl_getConnectionSetting( const sal_Char* _asciiName, const DatabaseMetaData_Impl& _metaData, Any& _out_setting ) + bool lcl_getConnectionSetting( const char* _asciiName, const DatabaseMetaData_Impl& _metaData, Any& _out_setting ) { try { diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx index 5c8d50cc7a52..46832ede01a3 100644 --- a/connectivity/source/commontools/dbtools2.cxx +++ b/connectivity/source/commontools/dbtools2.cxx @@ -572,7 +572,7 @@ Reference<XPropertySet> createSDBCXColumn(const Reference<XPropertySet>& _xTable } -bool getBooleanDataSourceSetting( const Reference< XConnection >& _rxConnection, const sal_Char* _pAsciiSettingName ) +bool getBooleanDataSourceSetting( const Reference< XConnection >& _rxConnection, const char* _pAsciiSettingName ) { bool bValue( false ); try @@ -620,7 +620,7 @@ bool getDataSourceSetting( const Reference< XInterface >& _xChild, const OUStrin return bIsPresent; } -bool getDataSourceSetting( const Reference< XInterface >& _rxDataSource, const sal_Char* _pAsciiSettingsName, +bool getDataSourceSetting( const Reference< XInterface >& _rxDataSource, const char* _pAsciiSettingsName, Any& /* [out] */ _rSettingsValue ) { OUString sAsciiSettingsName = OUString::createFromAscii(_pAsciiSettingsName); diff --git a/connectivity/source/commontools/sqlerror.cxx b/connectivity/source/commontools/sqlerror.cxx index 88758dd1b531..33e0913e3ea1 100644 --- a/connectivity/source/commontools/sqlerror.cxx +++ b/connectivity/source/commontools/sqlerror.cxx @@ -91,7 +91,7 @@ namespace connectivity /** substitutes a given placeholder in the given message with the given value */ - void lcl_substitutePlaceholder(OUString& _rMessage, const sal_Char* _pPlaceholder, const o3tl::optional<OUString>& rParamValue) + void lcl_substitutePlaceholder(OUString& _rMessage, const char* _pPlaceholder, const o3tl::optional<OUString>& rParamValue) { size_t nPlaceholderLen( strlen( _pPlaceholder ) ); sal_Int32 nIndex = _rMessage.indexOfAsciiL( _pPlaceholder, nPlaceholderLen ); diff --git a/connectivity/source/commontools/warningscontainer.cxx b/connectivity/source/commontools/warningscontainer.cxx index adb384be680d..733bf5b4a450 100644 --- a/connectivity/source/commontools/warningscontainer.cxx +++ b/connectivity/source/commontools/warningscontainer.cxx @@ -98,7 +98,7 @@ namespace dbtools } - void WarningsContainer::appendWarning( const OUString& _rWarning, const sal_Char* _pAsciiSQLState, const Reference< XInterface >& _rxContext ) + void WarningsContainer::appendWarning( const OUString& _rWarning, const char* _pAsciiSQLState, const Reference< XInterface >& _rxContext ) { appendWarning( SQLWarning( _rWarning, _rxContext, OUString::createFromAscii( _pAsciiSQLState ), 0, Any() ) ); } diff --git a/connectivity/source/cpool/Zregistration.cxx b/connectivity/source/cpool/Zregistration.cxx index cd834ad6c264..eb65e6158a75 100644 --- a/connectivity/source/cpool/Zregistration.cxx +++ b/connectivity/source/cpool/Zregistration.cxx @@ -32,7 +32,7 @@ extern "C" { -SAL_DLLPUBLIC_EXPORT void* dbpool2_component_getFactory(const sal_Char* _pImplName, void * _pServiceManager, void* /*_pRegistryKey*/) +SAL_DLLPUBLIC_EXPORT void* dbpool2_component_getFactory(const char* _pImplName, void * _pServiceManager, void* /*_pRegistryKey*/) { void* pRet = nullptr; diff --git a/connectivity/source/drivers/ado/AColumn.cxx b/connectivity/source/drivers/ado/AColumn.cxx index c7d5a5fce5c2..b7175d54cf1b 100644 --- a/connectivity/source/drivers/ado/AColumn.cxx +++ b/connectivity/source/drivers/ado/AColumn.cxx @@ -103,7 +103,7 @@ void OAdoColumn::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& r { if(m_aColumn.IsValid()) { - const sal_Char* pAdoPropertyName = nullptr; + const char* pAdoPropertyName = nullptr; switch(nHandle) { diff --git a/connectivity/source/drivers/ado/Aservices.cxx b/connectivity/source/drivers/ado/Aservices.cxx index d3228d3ffafc..0ec3ba953fbe 100644 --- a/connectivity/source/drivers/ado/Aservices.cxx +++ b/connectivity/source/drivers/ado/Aservices.cxx @@ -46,7 +46,7 @@ struct ProviderRequest ProviderRequest( void* pServiceManager, - sal_Char const* pImplementationName + char const* pImplementationName ) : xServiceManager(static_cast<XMultiServiceFactory*>(pServiceManager)) , sImplementationName(OUString::createFromAscii(pImplementationName)) @@ -77,7 +77,7 @@ struct ProviderRequest } extern "C" SAL_DLLPUBLIC_EXPORT void* ado_component_getFactory( - const sal_Char* pImplementationName, + const char* pImplementationName, void* pServiceManager, void* /*pRegistryKey*/) { diff --git a/connectivity/source/drivers/calc/Cservices.cxx b/connectivity/source/drivers/calc/Cservices.cxx index 91f58219cac3..06a516ddc119 100644 --- a/connectivity/source/drivers/calc/Cservices.cxx +++ b/connectivity/source/drivers/calc/Cservices.cxx @@ -46,7 +46,7 @@ struct ProviderRequest ProviderRequest( void* pServiceManager, - sal_Char const* pImplementationName + char const* pImplementationName ) : xServiceManager(static_cast<XMultiServiceFactory*>(pServiceManager)) , sImplementationName(OUString::createFromAscii(pImplementationName)) @@ -79,7 +79,7 @@ struct ProviderRequest } extern "C" SAL_DLLPUBLIC_EXPORT void* connectivity_calc_component_getFactory( - const sal_Char* pImplementationName, + const char* pImplementationName, void* pServiceManager, void* /*pRegistryKey*/) { diff --git a/connectivity/source/drivers/dbase/DTable.cxx b/connectivity/source/drivers/dbase/DTable.cxx index ffd4eb2ab30f..56f9f8d5eee1 100644 --- a/connectivity/source/drivers/dbase/DTable.cxx +++ b/connectivity/source/drivers/dbase/DTable.cxx @@ -1886,11 +1886,11 @@ bool ODbaseTable::UpdateBuffer(OValueRefVector& rRow, const OValueRefRow& pOrgRo m_xColumns->getByIndex(i) >>= xCol; OSL_ENSURE(xCol.is(),"ODbaseTable::UpdateBuffer column is null!"); xCol->getPropertyValue(OMetaConnection::getPropMap().getNameByIndex(PROPERTY_ID_NAME)) >>= aColName; - std::vector< std::pair<const sal_Char* , OUString > > aStringToSubstitutes; - aStringToSubstitutes.push_back(std::pair<const sal_Char* , OUString >("$columnname$", aColName)); - aStringToSubstitutes.push_back(std::pair<const sal_Char* , OUString >("$precision$", OUString::number(nLen))); - aStringToSubstitutes.push_back(std::pair<const sal_Char* , OUString >("$scale$", OUString::number(nScale))); - aStringToSubstitutes.push_back(std::pair<const sal_Char* , OUString >("$value$", OStringToOUString(aDefaultValue,RTL_TEXTENCODING_UTF8))); + std::vector< std::pair<const char* , OUString > > aStringToSubstitutes; + aStringToSubstitutes.push_back(std::pair<const char* , OUString >("$columnname$", aColName)); + aStringToSubstitutes.push_back(std::pair<const char* , OUString >("$precision$", OUString::number(nLen))); + aStringToSubstitutes.push_back(std::pair<const char* , OUString >("$scale$", OUString::number(nScale))); + aStringToSubstitutes.push_back(std::pair<const char* , OUString >("$value$", OStringToOUString(aDefaultValue,RTL_TEXTENCODING_UTF8))); const OUString sError( getConnection()->getResources().getResourceStringWithSubstitution( STR_INVALID_COLUMN_DECIMAL_VALUE diff --git a/connectivity/source/drivers/dbase/Dservices.cxx b/connectivity/source/drivers/dbase/Dservices.cxx index 9e24128912b2..e2d09d6c0478 100644 --- a/connectivity/source/drivers/dbase/Dservices.cxx +++ b/connectivity/source/drivers/dbase/Dservices.cxx @@ -46,7 +46,7 @@ struct ProviderRequest ProviderRequest( void* pServiceManager, - sal_Char const* pImplementationName + char const* pImplementationName ) : xServiceManager(static_cast<XMultiServiceFactory*>(pServiceManager)) , sImplementationName(OUString::createFromAscii(pImplementationName)) @@ -79,7 +79,7 @@ struct ProviderRequest } extern "C" SAL_DLLPUBLIC_EXPORT void* dbase_component_getFactory( - const sal_Char* pImplementationName, + const char* pImplementationName, void* pServiceManager, void* /*pRegistryKey*/) { diff --git a/connectivity/source/drivers/evoab2/NServices.cxx b/connectivity/source/drivers/evoab2/NServices.cxx index afc6291307cb..0fc8f8d07e98 100644 --- a/connectivity/source/drivers/evoab2/NServices.cxx +++ b/connectivity/source/drivers/evoab2/NServices.cxx @@ -47,7 +47,7 @@ struct ProviderRequest ProviderRequest( void* pServiceManager, - sal_Char const* pImplementationName + char const* pImplementationName ) : xServiceManager(static_cast<XMultiServiceFactory*>(pServiceManager)) , sImplementationName(OUString::createFromAscii(pImplementationName)) @@ -81,7 +81,7 @@ struct ProviderRequest } extern "C" SAL_DLLPUBLIC_EXPORT void* evoab2_component_getFactory( - const sal_Char* pImplementationName, + const char* pImplementationName, void* pServiceManager, void* /*pRegistryKey*/) { diff --git a/connectivity/source/drivers/file/FStringFunctions.cxx b/connectivity/source/drivers/file/FStringFunctions.cxx index 06e62a1a4cc2..32f590e310f7 100644 --- a/connectivity/source/drivers/file/FStringFunctions.cxx +++ b/connectivity/source/drivers/file/FStringFunctions.cxx @@ -69,7 +69,7 @@ ORowSetValue OOp_Char::operate(const std::vector<ORowSetValue>& lhs) const { if ( !aIter->isNull() ) { - sal_Char c = static_cast<sal_Char>(static_cast<sal_Int32>(*aIter)); + char c = static_cast<char>(static_cast<sal_Int32>(*aIter)); sRet.appendAscii(&c, 1); } @@ -150,7 +150,7 @@ ORowSetValue OOp_Space::operate(const ORowSetValue& lhs) const if ( lhs.isNull() ) return lhs; - const sal_Char c = ' '; + const char c = ' '; OUStringBuffer sRet; sal_Int32 nCount = lhs; for (sal_Int32 i=0; i < nCount; ++i) diff --git a/connectivity/source/drivers/firebird/Clob.cxx b/connectivity/source/drivers/firebird/Clob.cxx index 6fb7092457d7..5f73f8150727 100644 --- a/connectivity/source/drivers/firebird/Clob.cxx +++ b/connectivity/source/drivers/firebird/Clob.cxx @@ -60,7 +60,7 @@ sal_Int64 SAL_CALL Clob::length() { uno::Sequence < sal_Int8 > aSegmentBytes; bLastSegmRead = m_aBlob->readOneSegment( aSegmentBytes ); - OUString sSegment ( reinterpret_cast< sal_Char *>( aSegmentBytes.getArray() ), + OUString sSegment ( reinterpret_cast< char *>( aSegmentBytes.getArray() ), aSegmentBytes.getLength(), RTL_TEXTENCODING_UTF8 ); @@ -92,7 +92,7 @@ OUString SAL_CALL Clob::getSubString(sal_Int64 nPosition, if( bLastRead ) throw lang::IllegalArgumentException("nPosition out of range", *this, 0); - OUString sSegment ( reinterpret_cast< sal_Char *>( aSegmentBytes.getArray() ), + OUString sSegment ( reinterpret_cast< char *>( aSegmentBytes.getArray() ), aSegmentBytes.getLength(), RTL_TEXTENCODING_UTF8 ); sal_Int32 nStrLen = sSegment.getLength(); @@ -114,7 +114,7 @@ OUString SAL_CALL Clob::getSubString(sal_Int64 nPosition, uno::Sequence < sal_Int8 > aSegmentBytes; bool bLastRead = m_aBlob->readOneSegment( aSegmentBytes ); - OUString sSegment ( reinterpret_cast< sal_Char *>( aSegmentBytes.getArray() ), + OUString sSegment ( reinterpret_cast< char *>( aSegmentBytes.getArray() ), aSegmentBytes.getLength(), RTL_TEXTENCODING_UTF8 ); sal_Int32 nStrLen = sSegment.getLength(); diff --git a/connectivity/source/drivers/firebird/Services.cxx b/connectivity/source/drivers/firebird/Services.cxx index f85d5dbb48d5..e72133692f07 100644 --- a/connectivity/source/drivers/firebird/Services.cxx +++ b/connectivity/source/drivers/firebird/Services.cxx @@ -48,7 +48,7 @@ struct ProviderRequest ProviderRequest( void* pServiceManager, - sal_Char const* pImplementationName + char const* pImplementationName ) : xServiceManager(static_cast<XMultiServiceFactory*>(pServiceManager)) , sImplementationName(OUString::createFromAscii(pImplementationName)) @@ -81,7 +81,7 @@ struct ProviderRequest } extern "C" SAL_DLLPUBLIC_EXPORT void* firebird_sdbc_component_getFactory( - const sal_Char* pImplementationName, + const char* pImplementationName, void* pServiceManager, void*) { diff --git a/connectivity/source/drivers/flat/Eservices.cxx b/connectivity/source/drivers/flat/Eservices.cxx index 4b8b6c4b2879..e74db8791843 100644 --- a/connectivity/source/drivers/flat/Eservices.cxx +++ b/connectivity/source/drivers/flat/Eservices.cxx @@ -46,7 +46,7 @@ struct ProviderRequest ProviderRequest( void* pServiceManager, - sal_Char const* pImplementationName + char const* pImplementationName ) : xServiceManager(static_cast<XMultiServiceFactory*>(pServiceManager)) , sImplementationName(OUString::createFromAscii(pImplementationName)) @@ -79,7 +79,7 @@ struct ProviderRequest } extern "C" SAL_DLLPUBLIC_EXPORT void* flat_component_getFactory( - const sal_Char* pImplementationName, + const char* pImplementationName, void* pServiceManager, void* /*pRegistryKey*/) { diff --git a/connectivity/source/drivers/hsqldb/HDriver.cxx b/connectivity/source/drivers/hsqldb/HDriver.cxx index de76ecbba29d..159856a5583b 100644 --- a/connectivity/source/drivers/hsqldb/HDriver.cxx +++ b/connectivity/source/drivers/hsqldb/HDriver.cxx @@ -667,9 +667,9 @@ namespace connectivity namespace { - const sal_Char* lcl_getCollationForLocale( const OUString& _rLocaleString, bool _bAcceptCountryMismatch = false ) + const char* lcl_getCollationForLocale( const OUString& _rLocaleString, bool _bAcceptCountryMismatch = false ) { - static const sal_Char* pTranslations[] = + static const char* pTranslations[] = { "af-ZA", "Afrikaans", "am-ET", "Amharic", @@ -768,7 +768,7 @@ namespace connectivity }; OUString sLocaleString( _rLocaleString ); - sal_Char nCompareTermination = 0; + char nCompareTermination = 0; if ( _bAcceptCountryMismatch ) { @@ -782,7 +782,7 @@ namespace connectivity nCompareTermination = '-'; } - const sal_Char** pLookup = pTranslations; + const char** pLookup = pTranslations; for ( ; *pLookup; pLookup +=2 ) { sal_Int32 nCompareUntil = 0; diff --git a/connectivity/source/drivers/hsqldb/Hservices.cxx b/connectivity/source/drivers/hsqldb/Hservices.cxx index b41389a6d118..5ca8a0962636 100644 --- a/connectivity/source/drivers/hsqldb/Hservices.cxx +++ b/connectivity/source/drivers/hsqldb/Hservices.cxx @@ -47,7 +47,7 @@ struct ProviderRequest ProviderRequest( void* pServiceManager, - sal_Char const* pImplementationName + char const* pImplementationName ) : xServiceManager(static_cast<XMultiServiceFactory*>(pServiceManager)) , sImplementationName(OUString::createFromAscii(pImplementationName)) @@ -80,7 +80,7 @@ struct ProviderRequest } extern "C" SAL_DLLPUBLIC_EXPORT void* hsqldb_component_getFactory( - const sal_Char* pImplementationName, + const char* pImplementationName, void* pServiceManager, void* /*pRegistryKey*/) { diff --git a/connectivity/source/drivers/hsqldb/accesslog.cxx b/connectivity/source/drivers/hsqldb/accesslog.cxx index bc5a2c3de81e..a5978cdae051 100644 --- a/connectivity/source/drivers/hsqldb/accesslog.cxx +++ b/connectivity/source/drivers/hsqldb/accesslog.cxx @@ -38,7 +38,7 @@ namespace connectivity { namespace hsqldb } - LogFile::LogFile( JNIEnv* env, jstring streamName, const sal_Char* _pAsciiSuffix ) + LogFile::LogFile( JNIEnv* env, jstring streamName, const char* _pAsciiSuffix ) : m_sFileName(StorageContainer::jstring2ustring(env,streamName) + "." + OUString::createFromAscii( _pAsciiSuffix ) ) { @@ -57,7 +57,7 @@ namespace connectivity { namespace hsqldb } - void LogFile::writeString( const sal_Char* _pString, bool _bEndLine ) + void LogFile::writeString( const char* _pString, bool _bEndLine ) { FILE* pLogFile = getLogFile(); fwrite( _pString, sizeof( *_pString ), strlen( _pString ), pLogFile ); diff --git a/connectivity/source/drivers/hsqldb/accesslog.hxx b/connectivity/source/drivers/hsqldb/accesslog.hxx index bf34d9ffc190..304e3cb5c6a1 100644 --- a/connectivity/source/drivers/hsqldb/accesslog.hxx +++ b/connectivity/source/drivers/hsqldb/accesslog.hxx @@ -34,10 +34,10 @@ namespace connectivity { namespace hsqldb OUString m_sFileName; public: - LogFile( JNIEnv* env, jstring streamName, const sal_Char* _pAsciiSuffix ); + LogFile( JNIEnv* env, jstring streamName, const char* _pAsciiSuffix ); public: - void writeString( const sal_Char* _pString, bool _bEndLine = true ); + void writeString( const char* _pString, bool _bEndLine = true ); void create() { getLogFile(); } virtual void close(); @@ -48,17 +48,17 @@ namespace connectivity { namespace hsqldb class OperationLogFile : public LogFile { public: - OperationLogFile( JNIEnv* env, jstring streamName, const sal_Char* _pAsciiSuffix ) + OperationLogFile( JNIEnv* env, jstring streamName, const char* _pAsciiSuffix ) :LogFile( env, streamName, ( OString( _pAsciiSuffix ) += ".op" ).getStr() ) { } - void logOperation( const sal_Char* _pOp ) + void logOperation( const char* _pOp ) { writeString( _pOp, true ); } - void logOperation( const sal_Char* _pOp, jlong _nLongArg ) + void logOperation( const char* _pOp, jlong _nLongArg ) { OString sLine( _pOp ); sLine += "( "; @@ -92,7 +92,7 @@ namespace connectivity { namespace hsqldb class DataLogFile : public LogFile { public: - DataLogFile( JNIEnv* env, jstring streamName, const sal_Char* _pAsciiSuffix ) + DataLogFile( JNIEnv* env, jstring streamName, const char* _pAsciiSuffix ) :LogFile( env, streamName, _pAsciiSuffix ) { } diff --git a/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx b/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx index c88bc2f5093b..28ca22893e62 100644 --- a/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx +++ b/connectivity/source/drivers/jdbc/DatabaseMetaData.cxx @@ -538,7 +538,7 @@ bool java_sql_DatabaseMetaData::impl_callBooleanMethod( const char* _pMethodName { m_aLogger.log( LogLevel::FINEST, STR_LOG_META_DATA_METHOD, _pMethodName ); bool out( java_lang_Object::callBooleanMethod(_pMethodName,_inout_MethodID) ); - m_aLogger.log< const sal_Char*, bool>( LogLevel::FINEST, STR_LOG_META_DATA_RESULT, _pMethodName, out ); + m_aLogger.log< const char*, bool>( LogLevel::FINEST, STR_LOG_META_DATA_RESULT, _pMethodName, out ); return out; } @@ -581,7 +581,7 @@ bool java_sql_DatabaseMetaData::impl_callBooleanMethodWithIntArg( const char* _p bool out( callBooleanMethodWithIntArg(_pMethodName,_inout_MethodID,_nArgument) ); - m_aLogger.log< const sal_Char*, bool >( LogLevel::FINEST, STR_LOG_META_DATA_RESULT, _pMethodName, out ); + m_aLogger.log< const char*, bool >( LogLevel::FINEST, STR_LOG_META_DATA_RESULT, _pMethodName, out ); return out; } @@ -1001,7 +1001,7 @@ sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsConvert( sal_Int32 fromType ThrowLoggedSQLException( m_aLogger, t.pEnv, *this ); } - m_aLogger.log< const sal_Char*, bool >( LogLevel::FINEST, STR_LOG_META_DATA_RESULT, pMethodName, out ); + m_aLogger.log< const char*, bool >( LogLevel::FINEST, STR_LOG_META_DATA_RESULT, pMethodName, out ); return out; } @@ -1343,7 +1343,7 @@ sal_Bool SAL_CALL java_sql_DatabaseMetaData::supportsResultSetConcurrency( sal_I ThrowLoggedSQLException( m_aLogger, t.pEnv, *this ); } - m_aLogger.log< const sal_Char*, bool >( LogLevel::FINEST, STR_LOG_META_DATA_RESULT, pMethodName, out ); + m_aLogger.log< const char*, bool >( LogLevel::FINEST, STR_LOG_META_DATA_RESULT, pMethodName, out ); return out; } diff --git a/connectivity/source/drivers/jdbc/jservices.cxx b/connectivity/source/drivers/jdbc/jservices.cxx index 3044724735db..63ae84c8ebfb 100644 --- a/connectivity/source/drivers/jdbc/jservices.cxx +++ b/connectivity/source/drivers/jdbc/jservices.cxx @@ -46,7 +46,7 @@ struct ProviderRequest ProviderRequest( void* pServiceManager, - sal_Char const* pImplementationName + char const* pImplementationName ) : xServiceManager(static_cast<XMultiServiceFactory*>(pServiceManager)) , sImplementationName(OUString::createFromAscii(pImplementationName)) @@ -79,7 +79,7 @@ struct ProviderRequest } extern "C" SAL_DLLPUBLIC_EXPORT void* jdbc_component_getFactory( - const sal_Char* pImplementationName, + const char* pImplementationName, void* pServiceManager, void* /*pRegistryKey*/) { diff --git a/connectivity/source/drivers/macab/MacabDriver.cxx b/connectivity/source/drivers/macab/MacabDriver.cxx index bebef5591d11..7a130f364f85 100644 --- a/connectivity/source/drivers/macab/MacabDriver.cxx +++ b/connectivity/source/drivers/macab/MacabDriver.cxx @@ -85,7 +85,7 @@ bool MacabImplModule::isMacOSPresent() namespace { template< typename FUNCTION > - void lcl_getFunctionFromModuleOrUnload( oslModule& _rModule, const sal_Char* _pAsciiSymbolName, FUNCTION& _rFunction ) + void lcl_getFunctionFromModuleOrUnload( oslModule& _rModule, const char* _pAsciiSymbolName, FUNCTION& _rFunction ) { _rFunction = nullptr; if ( _rModule ) diff --git a/connectivity/source/drivers/macab/MacabServices.cxx b/connectivity/source/drivers/macab/MacabServices.cxx index a550fcb94f58..a1cfc340c51a 100644 --- a/connectivity/source/drivers/macab/MacabServices.cxx +++ b/connectivity/source/drivers/macab/MacabServices.cxx @@ -47,7 +47,7 @@ struct ProviderRequest ProviderRequest( void* pServiceManager, - sal_Char const* pImplementationName + char const* pImplementationName ) : xServiceManager(static_cast<XMultiServiceFactory*>(pServiceManager)) , sImplementationName(OUString::createFromAscii(pImplementationName)) @@ -78,7 +78,7 @@ struct ProviderRequest } extern "C" SAL_DLLPUBLIC_EXPORT void* macab_component_getFactory( - const sal_Char* pImplementationName, + const char* pImplementationName, void* pServiceManager, void*) { diff --git a/connectivity/source/drivers/mork/MColumnAlias.cxx b/connectivity/source/drivers/mork/MColumnAlias.cxx index 1c9badd3280f..9a716e3d7c34 100644 --- a/connectivity/source/drivers/mork/MColumnAlias.cxx +++ b/connectivity/source/drivers/mork/MColumnAlias.cxx @@ -36,7 +36,7 @@ using namespace ::com::sun::star::container; OColumnAlias::OColumnAlias( const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxORB ) { - static const sal_Char* s_pProgrammaticNames[] = + static const char* s_pProgrammaticNames[] = { "FirstName", "LastName", diff --git a/connectivity/source/drivers/mork/MColumnAlias.hxx b/connectivity/source/drivers/mork/MColumnAlias.hxx index 5074d4949cbf..3900b324b394 100644 --- a/connectivity/source/drivers/mork/MColumnAlias.hxx +++ b/connectivity/source/drivers/mork/MColumnAlias.hxx @@ -42,7 +42,7 @@ namespace connectivity ,columnPosition( 0 ) { } - AliasEntry( const sal_Char* _programmaticAsciiName, size_t _columnPosition ) + AliasEntry( const char* _programmaticAsciiName, size_t _columnPosition ) :programmaticAsciiName( _programmaticAsciiName ) ,columnPosition( _columnPosition ) { diff --git a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx index 615760506b08..a5cffdaa2d3e 100644 --- a/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx +++ b/connectivity/source/drivers/mozab/bootstrap/MMozillaBootstrap.cxx @@ -152,7 +152,7 @@ static Reference< XInterface > createInstance( const Reference< XMultiServiceFac } extern "C" SAL_DLLPUBLIC_EXPORT void* mozbootstrap_component_getFactory( - const sal_Char* pImplementationName, + const char* pImplementationName, void* pServiceManager, void* /*pRegistryKey*/) { diff --git a/connectivity/source/drivers/mysql_jdbc/Yservices.cxx b/connectivity/source/drivers/mysql_jdbc/Yservices.cxx index e275cd8d0371..a19e489bd07e 100644 --- a/connectivity/source/drivers/mysql_jdbc/Yservices.cxx +++ b/connectivity/source/drivers/mysql_jdbc/Yservices.cxx @@ -33,7 +33,7 @@ typedef Reference<XSingleServiceFactory> (*createFactoryFunc)( rtl_ModuleCount*); extern "C" SAL_DLLPUBLIC_EXPORT void* -mysql_jdbc_component_getFactory(const sal_Char* pImplementationName, void* pServiceManager, +mysql_jdbc_component_getFactory(const char* pImplementationName, void* pServiceManager, void* /*pRegistryKey*/) { if (!pServiceManager) diff --git a/connectivity/source/drivers/mysqlc/mysqlc_general.cxx b/connectivity/source/drivers/mysqlc/mysqlc_general.cxx index 4c7c8465c798..ace91d112210 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_general.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_general.cxx @@ -87,7 +87,7 @@ void allocateSqlVar(void** mem, enum_field_types eType, unsigned nSize) } } -void throwFeatureNotImplementedException(const sal_Char* _pAsciiFeatureName, +void throwFeatureNotImplementedException(const char* _pAsciiFeatureName, const css::uno::Reference<XInterface>& _rxContext) { const OUString sMessage @@ -95,7 +95,7 @@ void throwFeatureNotImplementedException(const sal_Char* _pAsciiFeatureName, throw SQLException(sMessage, _rxContext, "HYC00", 0, Any()); } -void throwInvalidArgumentException(const sal_Char* _pAsciiFeatureName, +void throwInvalidArgumentException(const char* _pAsciiFeatureName, const css::uno::Reference<XInterface>& _rxContext) { const OUString sMessage diff --git a/connectivity/source/drivers/mysqlc/mysqlc_general.hxx b/connectivity/source/drivers/mysqlc/mysqlc_general.hxx index 38852d269ae6..6fc9e46f71f2 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_general.hxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_general.hxx @@ -93,10 +93,9 @@ void resetSqlVar(void** target, T* pValue, enum_field_types type, sal_Int32 nSiz void allocateSqlVar(void** mem, enum_field_types eType, unsigned nSize = 0); void throwFeatureNotImplementedException( - const sal_Char* _pAsciiFeatureName, - const css::uno::Reference<css::uno::XInterface>& _rxContext); + const char* _pAsciiFeatureName, const css::uno::Reference<css::uno::XInterface>& _rxContext); -void throwInvalidArgumentException(const sal_Char* _pAsciiFeatureName, +void throwInvalidArgumentException(const char* _pAsciiFeatureName, const css::uno::Reference<css::uno::XInterface>& _rxContext); void throwSQLExceptionWithMsg(const char* msg, unsigned int errorNum, diff --git a/connectivity/source/drivers/mysqlc/mysqlc_services.cxx b/connectivity/source/drivers/mysqlc/mysqlc_services.cxx index 56a2242e5e50..b0f7d0adc7c1 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_services.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_services.cxx @@ -43,7 +43,7 @@ struct ProviderRequest Reference<XMultiServiceFactory> const xServiceManager; OUString const sImplementationName; - ProviderRequest(void* pServiceManager, sal_Char const* pImplementationName) + ProviderRequest(void* pServiceManager, char const* pImplementationName) : xServiceManager(static_cast<XMultiServiceFactory*>(pServiceManager)) , sImplementationName(OUString::createFromAscii(pImplementationName)) { @@ -69,7 +69,7 @@ struct ProviderRequest }; } -extern "C" SAL_DLLPUBLIC_EXPORT void* component_getFactory(const sal_Char* pImplementationName, +extern "C" SAL_DLLPUBLIC_EXPORT void* component_getFactory(const char* pImplementationName, void* pServiceManager, void* /* pRegistryKey */) { diff --git a/connectivity/source/drivers/odbc/oservices.cxx b/connectivity/source/drivers/odbc/oservices.cxx index 9c4994172422..6461f8dde48f 100644 --- a/connectivity/source/drivers/odbc/oservices.cxx +++ b/connectivity/source/drivers/odbc/oservices.cxx @@ -47,7 +47,7 @@ struct ProviderRequest ProviderRequest( void* pServiceManager, - sal_Char const* pImplementationName + char const* pImplementationName ) : xServiceManager(static_cast<XMultiServiceFactory*>(pServiceManager)) , sImplementationName(OUString::createFromAscii(pImplementationName)) @@ -80,7 +80,7 @@ struct ProviderRequest } extern "C" SAL_DLLPUBLIC_EXPORT void* odbc_component_getFactory( - const sal_Char* pImplementationName, + const char* pImplementationName, void* pServiceManager, void* /*pRegistryKey*/) { diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx index 868a011584c5..5664a182af31 100644 --- a/connectivity/source/drivers/postgresql/pq_connection.cxx +++ b/connectivity/source/drivers/postgresql/pq_connection.cxx @@ -710,7 +710,7 @@ extern "C" { SAL_DLLPUBLIC_EXPORT void * postgresql_sdbc_impl_component_getFactory( - const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) + const char * pImplName, void * pServiceManager, void * pRegistryKey ) { return cppu::component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey , g_entries ); } diff --git a/connectivity/source/drivers/postgresql/pq_driver.cxx b/connectivity/source/drivers/postgresql/pq_driver.cxx index a8e915a5cc67..27eae6a34403 100644 --- a/connectivity/source/drivers/postgresql/pq_driver.cxx +++ b/connectivity/source/drivers/postgresql/pq_driver.cxx @@ -278,7 +278,7 @@ extern "C" { SAL_DLLPUBLIC_EXPORT void * postgresql_sdbc_component_getFactory( - const sal_Char * pImplName, void * pServiceManager, void * ) + const char * pImplName, void * pServiceManager, void * ) { // need to extract the defaultcontext, because the way, sdbc // bypasses the servicemanager, does not allow to use the diff --git a/connectivity/source/drivers/postgresql/pq_statics.cxx b/connectivity/source/drivers/postgresql/pq_statics.cxx index 1b8c1cc116e3..d320a7c16b52 100644 --- a/connectivity/source/drivers/postgresql/pq_statics.cxx +++ b/connectivity/source/drivers/postgresql/pq_statics.cxx @@ -55,10 +55,10 @@ namespace { struct DefColumnMetaData { - const sal_Char * columnName; - const sal_Char * tableName; - const sal_Char * schemaTableName; - const sal_Char * typeName; + const char * columnName; + const char * tableName; + const char * schemaTableName; + const char * typeName; sal_Int32 type; sal_Int32 precision; sal_Int32 scale; diff --git a/connectivity/source/drivers/postgresql/pq_updateableresultset.cxx b/connectivity/source/drivers/postgresql/pq_updateableresultset.cxx index 7bf0d4fd625d..a8c2aa57ea4b 100644 --- a/connectivity/source/drivers/postgresql/pq_updateableresultset.cxx +++ b/connectivity/source/drivers/postgresql/pq_updateableresultset.cxx @@ -483,7 +483,7 @@ void UpdateableResultSet::updateBytes( sal_Int32 columnIndex, const css::uno::Se "pq_preparedstatement.setBytes: Error during converting bytesequence to an SQL conform string", *this, OUString(), 1, Any() ); } -// buf.append( (const sal_Char *)escapedString, len -1 ); +// buf.append( (const char *)escapedString, len -1 ); m_updateableField[columnIndex-1].value <<= OUString( reinterpret_cast<char*>(escapedString), len, RTL_TEXTENCODING_ASCII_US ); diff --git a/connectivity/source/drivers/writer/Wservices.cxx b/connectivity/source/drivers/writer/Wservices.cxx index 69f88016231d..7f997d7d110d 100644 --- a/connectivity/source/drivers/writer/Wservices.cxx +++ b/connectivity/source/drivers/writer/Wservices.cxx @@ -38,7 +38,7 @@ private: OUString const sImplementationName; public: - ProviderRequest(void* pServiceManager, sal_Char const* pImplementationName) + ProviderRequest(void* pServiceManager, char const* pImplementationName) : xServiceManager(static_cast<lang::XMultiServiceFactory*>(pServiceManager)) , sImplementationName(OUString::createFromAscii(pImplementationName)) { @@ -65,7 +65,7 @@ public: } extern "C" SAL_DLLPUBLIC_EXPORT void* -connectivity_writer_component_getFactory(const sal_Char* pImplementationName, void* pServiceManager, +connectivity_writer_component_getFactory(const char* pImplementationName, void* pServiceManager, void* /*pRegistryKey*/) { void* pRet = nullptr; diff --git a/connectivity/source/inc/resource/sharedresources.hxx b/connectivity/source/inc/resource/sharedresources.hxx index 535e71469e6c..bc4c1aecaa06 100644 --- a/connectivity/source/inc/resource/sharedresources.hxx +++ b/connectivity/source/inc/resource/sharedresources.hxx @@ -67,7 +67,7 @@ namespace connectivity OUString getResourceStringWithSubstitution( const char* pResId, - const sal_Char* _pAsciiPatternToReplace, + const char* _pAsciiPatternToReplace, const OUString& _rStringToSubstitute ) const; @@ -91,9 +91,9 @@ namespace connectivity OUString getResourceStringWithSubstitution( const char* pResId, - const sal_Char* _pAsciiPatternToReplace1, + const char* _pAsciiPatternToReplace1, const OUString& _rStringToSubstitute1, - const sal_Char* _pAsciiPatternToReplace2, + const char* _pAsciiPatternToReplace2, const OUString& _rStringToSubstitute2 ) const; @@ -121,11 +121,11 @@ namespace connectivity OUString getResourceStringWithSubstitution( const char* pResId, - const sal_Char* _pAsciiPatternToReplace1, + const char* _pAsciiPatternToReplace1, const OUString& _rStringToSubstitute1, - const sal_Char* _pAsciiPatternToReplace2, + const char* _pAsciiPatternToReplace2, const OUString& _rStringToSubstitute2, - const sal_Char* _pAsciiPatternToReplace3, + const char* _pAsciiPatternToReplace3, const OUString& _rStringToSubstitute3 ) const; @@ -140,7 +140,7 @@ namespace connectivity the string from the resource file, with applied string substitution */ OUString getResourceStringWithSubstitution( const char* pResId, - const std::vector< std::pair<const sal_Char* , OUString > >& _rStringToSubstitutes) const; + const std::vector< std::pair<const char* , OUString > >& _rStringToSubstitutes) const; }; diff --git a/connectivity/source/manager/mregistration.cxx b/connectivity/source/manager/mregistration.cxx index 99c3fb1ad58b..c78d3ec6d786 100644 --- a/connectivity/source/manager/mregistration.cxx +++ b/connectivity/source/manager/mregistration.cxx @@ -30,7 +30,7 @@ extern "C" { -SAL_DLLPUBLIC_EXPORT void* sdbc2_component_getFactory(const sal_Char* _pImplName, void * _pServiceManager, void* /*_pRegistryKey*/) +SAL_DLLPUBLIC_EXPORT void* sdbc2_component_getFactory(const char* _pImplName, void * _pServiceManager, void* /*_pRegistryKey*/) { void* pRet = nullptr; diff --git a/connectivity/source/parse/internalnode.cxx b/connectivity/source/parse/internalnode.cxx index ef8d9aae789d..b831b4a01088 100644 --- a/connectivity/source/parse/internalnode.cxx +++ b/connectivity/source/parse/internalnode.cxx @@ -25,7 +25,7 @@ using namespace connectivity; -OSQLInternalNode::OSQLInternalNode(const sal_Char* pNewValue, +OSQLInternalNode::OSQLInternalNode(const char* pNewValue, SQLNodeType eNodeType, sal_uInt32 nNodeID) : OSQLParseNode(pNewValue,eNodeType,nNodeID) diff --git a/connectivity/source/parse/sqlbison.y b/connectivity/source/parse/sqlbison.y index 453019b928ed..4c1294a07e58 100644 --- a/connectivity/source/parse/sqlbison.y +++ b/connectivity/source/parse/sqlbison.y @@ -59,7 +59,7 @@ # pragma GCC diagnostic ignored "-Wunused-function" #endif -inline connectivity::OSQLInternalNode* newNode(const sal_Char* pNewValue, +inline connectivity::OSQLInternalNode* newNode(const char* pNewValue, const connectivity::SQLNodeType eNodeType, const sal_uInt32 nNodeID = 0); @@ -4278,7 +4278,7 @@ using namespace ::dbtools; connectivity::OSQLParser* xxx_pGLOBAL_SQLPARSER; -connectivity::OSQLInternalNode* newNode(const sal_Char* pNewValue, +connectivity::OSQLInternalNode* newNode(const char* pNewValue, const connectivity::SQLNodeType eNodeType, const sal_uInt32 nNodeID) { @@ -4786,7 +4786,7 @@ void OSQLParser::reduceLiteral(OSQLParseNode*& pLiteral, bool bAppendBlank) } -void OSQLParser::error(const sal_Char *fmt) +void OSQLParser::error(const char *fmt) { if(m_sErrorMessage.isEmpty()) { diff --git a/connectivity/source/parse/sqlflex.l b/connectivity/source/parse/sqlflex.l index 1002ecef7970..1339cc95a39d 100644 --- a/connectivity/source/parse/sqlflex.l +++ b/connectivity/source/parse/sqlflex.l @@ -72,8 +72,8 @@ using namespace connectivity; // Pages generally are created from the Lexer static sal_Int32 gatherString(int delim, sal_Int32 nTyp); -static sal_Int32 gatherName(const sal_Char*); -static sal_Int32 gatherNamePre(const sal_Char* ); +static sal_Int32 gatherName(const char*); +static sal_Int32 gatherNamePre(const char* ); // has to be set before the parser starts OSQLScanner* xxx_pGLOBAL_SQLSCAN = nullptr; @@ -550,7 +550,7 @@ sal_Int32 gatherString(int delim, sal_Int32 nTyp) } else { - sBuffer.append(static_cast<sal_Char>(ch)); + sBuffer.append(static_cast<char>(ch)); } } @@ -558,7 +558,7 @@ sal_Int32 gatherString(int delim, sal_Int32 nTyp) break; else { - sBuffer.append(static_cast<sal_Char>(ch)); + sBuffer.append(static_cast<char>(ch)); } } YY_FATAL_ERROR("Unterminated name string"); @@ -604,7 +604,7 @@ sal_Int32 mapEnumToToken(IParseContext::InternationalKeyCode _eKeyCode ) * Valid Names or international keywords: * As we have international keywords, we test first on them */ -sal_Int32 gatherName(const sal_Char* text) +sal_Int32 gatherName(const char* text) { sal_Int32 nToken; OSL_ENSURE(xxx_pGLOBAL_SQLSCAN,"You forgot to set the scanner!"); @@ -648,7 +648,7 @@ sal_Int32 gatherName(const sal_Char* text) Valid Names or international keywords: As we have international keywords, we test first on them */ -sal_Int32 gatherNamePre(const sal_Char* text) +sal_Int32 gatherNamePre(const char* text) { sal_Int32 nToken; OSL_ENSURE(xxx_pGLOBAL_SQLSCAN,"You forgot to set the scanner!"); @@ -784,7 +784,7 @@ sal_Int32 OSQLScanner::SQLyygetc(void) } //------------------------------------------------------------------------------ -IParseContext::InternationalKeyCode OSQLScanner::getInternationalTokenID(const sal_Char* sToken) const +IParseContext::InternationalKeyCode OSQLScanner::getInternationalTokenID(const char* sToken) const { OSL_ENSURE(m_pContext, "OSQLScanner::getInternationalTokenID: No Context set"); return (m_bInternational) ? m_pContext->getIntlKeyCode(OString(sToken) ) : IParseContext::InternationalKeyCode::None; diff --git a/connectivity/source/parse/sqliterator.cxx b/connectivity/source/parse/sqliterator.cxx index 2c928216707c..0f59720e1868 100644 --- a/connectivity/source/parse/sqliterator.cxx +++ b/connectivity/source/parse/sqliterator.cxx @@ -1991,7 +1991,7 @@ void OSQLParseTreeIterator::impl_appendError( IParseContext::ErrorCode _eError, if ( _pReplaceToken1 ) { bool bTwoTokens = ( _pReplaceToken2 != nullptr ); - const sal_Char* pPlaceHolder1 = bTwoTokens ? "#1" : "#"; + const char* pPlaceHolder1 = bTwoTokens ? "#1" : "#"; const OUString sPlaceHolder1 = OUString::createFromAscii( pPlaceHolder1 ); sErrorMessage = sErrorMessage.replaceFirst( sPlaceHolder1, *_pReplaceToken1 ); diff --git a/connectivity/source/parse/sqlnode.cxx b/connectivity/source/parse/sqlnode.cxx index 80c752ef5f01..a7985de03008 100644 --- a/connectivity/source/parse/sqlnode.cxx +++ b/connectivity/source/parse/sqlnode.cxx @@ -1588,7 +1588,7 @@ OSQLParseNode* OSQLParser::buildDate(sal_Int32 _nType,OSQLParseNode*& pLiteral) } -OSQLParseNode::OSQLParseNode(const sal_Char * pNewValue, +OSQLParseNode::OSQLParseNode(const char * pNewValue, SQLNodeType eNewNodeType, sal_uInt32 nNewNodeID) :m_pParent(nullptr) diff --git a/connectivity/source/resource/sharedresources.cxx b/connectivity/source/resource/sharedresources.cxx index bab95793452d..d2aba18aaaf0 100644 --- a/connectivity/source/resource/sharedresources.cxx +++ b/connectivity/source/resource/sharedresources.cxx @@ -104,7 +104,7 @@ namespace connectivity namespace { size_t lcl_substitute( OUString& _inout_rString, - const sal_Char* _pAsciiPattern, const OUString& _rReplace ) + const char* _pAsciiPattern, const OUString& _rReplace ) { size_t nOccurrences = 0; @@ -139,7 +139,7 @@ namespace connectivity OUString SharedResources::getResourceStringWithSubstitution(const char* pResId, - const sal_Char* _pAsciiPatternToReplace, const OUString& _rStringToSubstitute ) const + const char* _pAsciiPatternToReplace, const OUString& _rStringToSubstitute ) const { OUString sString( SharedResources_Impl::getInstance().getResourceString(pResId) ); if ( !lcl_substitute( sString, _pAsciiPatternToReplace, _rStringToSubstitute ) ) @@ -149,8 +149,8 @@ namespace connectivity OUString SharedResources::getResourceStringWithSubstitution(const char* pResId, - const sal_Char* _pAsciiPatternToReplace1, const OUString& _rStringToSubstitute1, - const sal_Char* _pAsciiPatternToReplace2, const OUString& _rStringToSubstitute2 ) const + const char* _pAsciiPatternToReplace1, const OUString& _rStringToSubstitute1, + const char* _pAsciiPatternToReplace2, const OUString& _rStringToSubstitute2 ) const { OUString sString( SharedResources_Impl::getInstance().getResourceString(pResId) ); if( !lcl_substitute( sString, _pAsciiPatternToReplace1, _rStringToSubstitute1 ) ) @@ -162,9 +162,9 @@ namespace connectivity OUString SharedResources::getResourceStringWithSubstitution(const char* pResId, - const sal_Char* _pAsciiPatternToReplace1, const OUString& _rStringToSubstitute1, - const sal_Char* _pAsciiPatternToReplace2, const OUString& _rStringToSubstitute2, - const sal_Char* _pAsciiPatternToReplace3, const OUString& _rStringToSubstitute3 ) const + const char* _pAsciiPatternToReplace1, const OUString& _rStringToSubstitute1, + const char* _pAsciiPatternToReplace2, const OUString& _rStringToSubstitute2, + const char* _pAsciiPatternToReplace3, const OUString& _rStringToSubstitute3 ) const { OUString sString( SharedResources_Impl::getInstance().getResourceString(pResId) ); if( !lcl_substitute( sString, _pAsciiPatternToReplace1, _rStringToSubstitute1 ) ) @@ -177,7 +177,7 @@ namespace connectivity } OUString SharedResources::getResourceStringWithSubstitution(const char* pResId, - const std::vector< std::pair<const sal_Char* , OUString > >& _rStringToSubstitutes) const + const std::vector< std::pair<const char* , OUString > >& _rStringToSubstitutes) const { OUString sString( SharedResources_Impl::getInstance().getResourceString(pResId) ); for(const auto& [rPattern, rReplace] : _rStringToSubstitutes) |