diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-19 21:49:02 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-20 08:17:00 +0100 |
commit | 12f1faf7bf7b236f54f740a9f65646749fc266ee (patch) | |
tree | 92b570339a02ac977907be12dc8e2e49291d177d /svl/source/misc | |
parent | 9e183fbfdbfbe364d17f9d36a0b33d2fae89862d (diff) |
svl: sal_Bool -> bool
Change-Id: Ic31455a1f5ffffa35d4fdde901dd70734207b6f4
Diffstat (limited to 'svl/source/misc')
-rw-r--r-- | svl/source/misc/documentlockfile.cxx | 2 | ||||
-rw-r--r-- | svl/source/misc/fstathelper.cxx | 14 | ||||
-rw-r--r-- | svl/source/misc/inethist.cxx | 12 |
3 files changed, 14 insertions, 14 deletions
diff --git a/svl/source/misc/documentlockfile.cxx b/svl/source/misc/documentlockfile.cxx index 0b77892b1ef8..14745c1d653b 100644 --- a/svl/source/misc/documentlockfile.cxx +++ b/svl/source/misc/documentlockfile.cxx @@ -214,7 +214,7 @@ void DocumentLockFile::RemoveFile() uno::Reference < ::com::sun::star::ucb::XCommandEnvironment > xEnv; ::ucbhelper::Content aCnt(m_aURL, xEnv, comphelper::getProcessComponentContext()); aCnt.executeCommand(OUString("delete"), - uno::makeAny(sal_Bool(sal_True))); + uno::makeAny(true)); } } // namespace svt diff --git a/svl/source/misc/fstathelper.cxx b/svl/source/misc/fstathelper.cxx index 0184425ee172..a9781b03e94c 100644 --- a/svl/source/misc/fstathelper.cxx +++ b/svl/source/misc/fstathelper.cxx @@ -30,10 +30,10 @@ using namespace ::com::sun::star::uno; using namespace ::com::sun::star::ucb; using namespace ::rtl; -sal_Bool FStatHelper::GetModifiedDateTimeOfFile( const OUString& rURL, +bool FStatHelper::GetModifiedDateTimeOfFile( const OUString& rURL, Date* pDate, Time* pTime ) { - sal_Bool bRet = sal_False; + bool bRet = false; try { ::ucbhelper::Content aTestContent( rURL, @@ -43,7 +43,7 @@ sal_Bool FStatHelper::GetModifiedDateTimeOfFile( const OUString& rURL, OUString("DateModified") ); if( aAny.hasValue() ) { - bRet = sal_True; + bRet = true; const util::DateTime* pDT = (util::DateTime*)aAny.getValue(); if( pDate ) *pDate = Date( pDT->Day, pDT->Month, pDT->Year ); @@ -59,9 +59,9 @@ sal_Bool FStatHelper::GetModifiedDateTimeOfFile( const OUString& rURL, return bRet; } -sal_Bool FStatHelper::IsDocument( const OUString& rURL ) +bool FStatHelper::IsDocument( const OUString& rURL ) { - sal_Bool bExist = sal_False; + bool bExist = false; try { ::ucbhelper::Content aTestContent( rURL, @@ -75,9 +75,9 @@ sal_Bool FStatHelper::IsDocument( const OUString& rURL ) return bExist; } -sal_Bool FStatHelper::IsFolder( const OUString& rURL ) +bool FStatHelper::IsFolder( const OUString& rURL ) { - sal_Bool bExist = sal_False; + bool bExist = false; try { ::ucbhelper::Content aTestContent( rURL, diff --git a/svl/source/misc/inethist.cxx b/svl/source/misc/inethist.cxx index cb14845a3b3a..37e9c41fcba3 100644 --- a/svl/source/misc/inethist.cxx +++ b/svl/source/misc/inethist.cxx @@ -201,7 +201,7 @@ public: /** putUrl/queryUrl. */ void putUrl (const OUString &rUrl); - sal_Bool queryUrl (const OUString &rUrl); + bool queryUrl (const OUString &rUrl); }; /*======================================================================== @@ -348,19 +348,19 @@ void INetURLHistory_Impl::putUrl (const OUString &rUrl) /* * queryUrl. */ -sal_Bool INetURLHistory_Impl::queryUrl (const OUString &rUrl) +bool INetURLHistory_Impl::queryUrl (const OUString &rUrl) { sal_uInt32 h = crc32 (rUrl); sal_uInt16 k = find (h); if ((k < capacity()) && (m_pHash[k] == h)) { // Cache hit. - return sal_True; + return true; } else { // Cache miss. - return sal_False; + return false; } } @@ -473,7 +473,7 @@ void INetURLHistory::PutUrl_Impl (const INetURLObject &rUrl) /* * QueryUrl_Impl. */ -sal_Bool INetURLHistory::QueryUrl_Impl (const INetURLObject &rUrl) +bool INetURLHistory::QueryUrl_Impl (const INetURLObject &rUrl) { DBG_ASSERT (m_pImpl, "QueryUrl_Impl(): no Implementation"); if (m_pImpl) @@ -483,7 +483,7 @@ sal_Bool INetURLHistory::QueryUrl_Impl (const INetURLObject &rUrl) return m_pImpl->queryUrl (aHistUrl.GetMainURL(INetURLObject::NO_DECODE)); } - return sal_False; + return false; } |