diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-10 10:13:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-10 10:13:41 +0200 |
commit | c14ed11d77fcace619b9f63707c6c4dfc3309c6c (patch) | |
tree | ab7c499cc4b3ab7f86d33eb20fd22c44a2a7e461 /basic/qa/cppunit | |
parent | b35552f39503b9baca9c2d7b6944d9f18ca0004a (diff) |
Clean up uses of SAL_U/SAL_W: basic
Change-Id: I755b3b781c42cc9af61c0b90621d2eb7f544df62
Diffstat (limited to 'basic/qa/cppunit')
-rw-r--r-- | basic/qa/cppunit/test_vba.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/basic/qa/cppunit/test_vba.cxx b/basic/qa/cppunit/test_vba.cxx index db6267fb9f2f..6638bab883c9 100644 --- a/basic/qa/cppunit/test_vba.cxx +++ b/basic/qa/cppunit/test_vba.cxx @@ -139,14 +139,14 @@ void VBATest::testMiscOLEStuff() return; // can't do anything, skip test const int nBufSize = 1024 * 4; - sal_Unicode sBuf[nBufSize]; - SQLGetInstalledDriversW( SAL_W(sBuf), nBufSize, nullptr ); + wchar_t sBuf[nBufSize]; + SQLGetInstalledDriversW( sBuf, nBufSize, nullptr ); - const sal_Unicode *pODBCDriverName = sBuf; + const wchar_t *pODBCDriverName = sBuf; bool bFound = false; - for (; wcslen( SAL_W(pODBCDriverName) ) != 0; pODBCDriverName += wcslen( SAL_W(pODBCDriverName) ) + 1 ) { - if( wcscmp( SAL_W(pODBCDriverName), L"Microsoft Excel Driver (*.xls)" ) == 0 || - wcscmp( SAL_W(pODBCDriverName), L"Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)" ) == 0 ) { + for (; wcslen( pODBCDriverName ) != 0; pODBCDriverName += wcslen( pODBCDriverName ) + 1 ) { + if( wcscmp( pODBCDriverName, L"Microsoft Excel Driver (*.xls)" ) == 0 || + wcscmp( pODBCDriverName, L"Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)" ) == 0 ) { bFound = true; break; } @@ -171,7 +171,8 @@ void VBATest::testMiscOLEStuff() sPath = sPath.replaceAll( "/", "\\" ); aArgs[ 0 ] <<= sPath; - aArgs[ 1 ] <<= OUString(pODBCDriverName); + aArgs[ 1 ] <<= OUString( + reinterpret_cast<sal_Unicode const *>(pODBCDriverName)); for ( sal_uInt32 i=0; i<SAL_N_ELEMENTS( macroSource ); ++i ) { |