diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-14 16:58:25 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-16 14:19:27 +0000 |
commit | 3b02c40a404f5a7a635e6c936dc8362b8911edb8 (patch) | |
tree | eb217f69acb18b49d83c928a35c1279d7e7c1e4b | |
parent | 227d3d09910232545d41975e9b5af9863257bc37 (diff) |
clang-cl loplugin: comphelper
Change-Id: Icde27eeeb21e9049630028e81af10edc1ba8ae04
Reviewed-on: https://gerrit.libreoffice.org/29876
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | comphelper/source/misc/mimeconfighelper.cxx | 2 | ||||
-rw-r--r-- | include/comphelper/windowserrorstring.hxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/comphelper/source/misc/mimeconfighelper.cxx b/comphelper/source/misc/mimeconfighelper.cxx index e4fd84c77214..ad21ae645199 100644 --- a/comphelper/source/misc/mimeconfighelper.cxx +++ b/comphelper/source/misc/mimeconfighelper.cxx @@ -693,7 +693,7 @@ SfxFilterFlags MimeConfigurationHelper::GetFilterFlags( const OUString& aFilterN bool MimeConfigurationHelper::AddFilterNameCheckOwnFile( uno::Sequence< beans::PropertyValue >& aMediaDescr ) { - OUString aFilterName = UpdateMediaDescriptorWithFilterName( aMediaDescr, sal_False ); + OUString aFilterName = UpdateMediaDescriptorWithFilterName( aMediaDescr, false ); if ( !aFilterName.isEmpty() ) { SfxFilterFlags nFlags = GetFilterFlags( aFilterName ); diff --git a/include/comphelper/windowserrorstring.hxx b/include/comphelper/windowserrorstring.hxx index d47ff659eb44..f4c67aa39aec 100644 --- a/include/comphelper/windowserrorstring.hxx +++ b/include/comphelper/windowserrorstring.hxx @@ -21,12 +21,12 @@ inline OUString WindowsErrorString(DWORD nErrorCode) LPWSTR pMsgBuf; if (FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, - NULL, + nullptr, nErrorCode, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), - (LPWSTR)&pMsgBuf, + reinterpret_cast<LPWSTR>(&pMsgBuf), 0, - NULL) == 0) + nullptr) == 0) return OUString::number(nErrorCode, 16); if (pMsgBuf[wcslen(pMsgBuf)-1] == '\n') |