summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-11-26 14:37:20 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-11-26 16:45:19 +0100
commit9f90050aa17a76adef94b4ba2568db2da1bd1b9b (patch)
tree059ed03f013271da708107f2a3782e331ce44288 /shell
parentfa42338091ecd96b637ea52984c2642b89966f44 (diff)
loplugin:consttobool (clang-cl)
Change-Id: I81fea38cd737a8be74e6ece333ca37cc434a1c33 Reviewed-on: https://gerrit.libreoffice.org/83765 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx20
-rw-r--r--shell/source/win32/shlxthandler/propsheets/propsheets.cxx4
2 files changed, 12 insertions, 12 deletions
diff --git a/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx b/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx
index 86558ee6e424..7088dfbc027b 100644
--- a/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx
+++ b/shell/source/win32/shlxthandler/ooofilt/ooofilt.cxx
@@ -84,8 +84,8 @@ COooFilter::COooFilter() :
m_ulPropertyNum(0),
m_ulCurrentPropertyNum(0),
m_ulChunkID(1),
- m_fContents(FALSE),
- m_fEof(FALSE),
+ m_fContents(false),
+ m_fEof(false),
m_ChunkPosition(0),
m_cAttributes(0),
m_pAttributes(nullptr),
@@ -203,7 +203,7 @@ SCODE STDMETHODCALLTYPE COooFilter::Init(
*pFlags = IFILTER_FLAGS_OLE_PROPERTIES;
try
{
- m_fContents = FALSE;
+ m_fContents = false;
m_ulPropertyNum = 0;
m_ulCurrentPropertyNum = 0;
if ( m_cAttributes > 0 )
@@ -228,7 +228,7 @@ SCODE STDMETHODCALLTYPE COooFilter::Init(
pAttrib[ulNumAttr].GetPropertyPropid() == PID_STG_CONTENTS &&
pAttrib[ulNumAttr].GetPropSet() == guidStorage )
{
- m_fContents = TRUE;
+ m_fContents = true;
}
// save the requested properties.
m_pAttributes[ulNumAttr] = pAttrib[ulNumAttr];
@@ -237,7 +237,7 @@ SCODE STDMETHODCALLTYPE COooFilter::Init(
else if ( grfFlags & IFILTER_INIT_APPLY_INDEX_ATTRIBUTES )
{
// Filter contents and all pseudo-properties
- m_fContents = TRUE;
+ m_fContents = true;
m_pAttributes = new CFullPropSpec[COUNT_ATTRIBUTES];
m_cAttributes = COUNT_ATTRIBUTES;
@@ -255,21 +255,21 @@ SCODE STDMETHODCALLTYPE COooFilter::Init(
else if ( 0 == grfFlags )
{
// Filter only contents
- m_fContents = TRUE;
+ m_fContents = true;
}
else
- m_fContents = FALSE;
+ m_fContents = false;
// Re-initialize
if ( m_fContents )
{
- m_fEof = FALSE;
+ m_fEof = false;
m_eState = FilterState::FilteringContent;
m_ulUnicodeCharsRead = 0;
m_ChunkPosition = 0;
}
else
{
- m_fEof = TRUE;
+ m_fEof = true;
m_eState = FilterState::FilteringProperty;
}
m_ulChunkID = 1;
@@ -312,7 +312,7 @@ SCODE STDMETHODCALLTYPE COooFilter::GetChunk(STAT_CHUNK * pStat)
if( m_ChunkPosition == m_pContentReader ->getChunkBuffer().size() )
{
m_ulUnicodeBufferLen=0;
- m_fEof = TRUE;
+ m_fEof = true;
}
if ( !m_fContents || m_fEof )
diff --git a/shell/source/win32/shlxthandler/propsheets/propsheets.cxx b/shell/source/win32/shlxthandler/propsheets/propsheets.cxx
index 196d9ed49ba2..12985d71f4b6 100644
--- a/shell/source/win32/shlxthandler/propsheets/propsheets.cxx
+++ b/shell/source/win32/shlxthandler/propsheets/propsheets.cxx
@@ -229,11 +229,11 @@ bool CALLBACK CPropertySheet::PropPageSummaryProc(HWND hwnd, UINT uiMsg, WPARAM
LPPROPSHEETPAGE psp = reinterpret_cast<LPPROPSHEETPAGE>(lParam);
CPropertySheet* pImpl = reinterpret_cast<CPropertySheet*>(psp->lParam);
pImpl->InitPropPageSummary(hwnd, psp);
- return TRUE;
+ return true;
}
}
- return FALSE;
+ return false;
}