summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-03-12 17:01:15 +0100
committerMichael Stahl <mstahl@redhat.com>2015-03-12 17:28:52 +0100
commit6c6d9793730b836e761adba1d02694c133047b09 (patch)
treec354508ac167f8b6213a7899fad97df763fa118f /extensions
parent91c059023f36217761cbdd281ba286d8e63258c9 (diff)
extensions: PVS-Studio V716 Suspicious type conversion: BOOL -> HRESULT
Change-Id: I3ab73401b29be79ae5457c9f8905ad35e6f0c5fa
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/update/check/updatecheckconfig.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/source/update/check/updatecheckconfig.cxx b/extensions/source/update/check/updatecheckconfig.cxx
index 6ef83921a09c..a1c5c97fd290 100644
--- a/extensions/source/update/check/updatecheckconfig.cxx
+++ b/extensions/source/update/check/updatecheckconfig.cxx
@@ -190,7 +190,7 @@ OUString UpdateCheckConfig::getDesktopDirectory()
#ifdef WNT
WCHAR szPath[MAX_PATH];
- if( ! FAILED( SHGetSpecialFolderPathW( NULL, szPath, CSIDL_DESKTOPDIRECTORY, true ) ) )
+ if (TRUE == SHGetSpecialFolderPathW(nullptr, szPath, CSIDL_DESKTOPDIRECTORY, true))
{
aRet = OUString( reinterpret_cast< sal_Unicode * >(szPath) );
osl::FileBase::getFileURLFromSystemPath( aRet, aRet );
@@ -219,7 +219,7 @@ OUString UpdateCheckConfig::getAllUsersDirectory()
#ifdef WNT
WCHAR szPath[MAX_PATH];
- if( ! FAILED( SHGetSpecialFolderPathW( NULL, szPath, CSIDL_COMMON_DOCUMENTS, true ) ) )
+ if (TRUE == SHGetSpecialFolderPathW(nullptr, szPath, CSIDL_COMMON_DOCUMENTS, true))
{
aRet = OUString( reinterpret_cast< sal_Unicode * >(szPath) );
osl::FileBase::getFileURLFromSystemPath( aRet, aRet );