summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:33:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:27 +0200
commitf88a1b8d55923c8edee5bc175fd805db779ef166 (patch)
tree3cdfc16de3a4daa61e1539624c10f24cc3e49f0f /sdext
parent8039c64822c8de24ea452bff7917193f7cc90669 (diff)
loplugin:simplifybool
Change-Id: If5f4042642364424f8d7e1e13b6285503df1d381
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/pdfparse/pdfparse.cxx4
-rw-r--r--sdext/source/presenter/PresenterPaneFactory.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/sdext/source/pdfimport/pdfparse/pdfparse.cxx b/sdext/source/pdfimport/pdfparse/pdfparse.cxx
index a5d17b3a5063..6419040d8bd7 100644
--- a/sdext/source/pdfimport/pdfparse/pdfparse.cxx
+++ b/sdext/source/pdfimport/pdfparse/pdfparse.cxx
@@ -57,8 +57,8 @@ class StringEmitContext : public EmitContext
}
virtual unsigned int getCurPos() throw() SAL_OVERRIDE { return m_aBuf.getLength(); }
virtual bool copyOrigBytes( unsigned int nOrigOffset, unsigned int nLen ) throw() SAL_OVERRIDE
- { return (nOrigOffset+nLen < static_cast<unsigned int>(m_aBuf.getLength()) ) ?
- write( m_aBuf.getStr() + nOrigOffset, nLen ) : false; }
+ { return (nOrigOffset+nLen < static_cast<unsigned int>(m_aBuf.getLength()) ) &&
+ write( m_aBuf.getStr() + nOrigOffset, nLen ); }
virtual unsigned int readOrigBytes( unsigned int nOrigOffset, unsigned int nLen, void* pBuf ) throw() SAL_OVERRIDE
{
if( nOrigOffset+nLen < static_cast<unsigned int>(m_aBuf.getLength()) )
diff --git a/sdext/source/presenter/PresenterPaneFactory.cxx b/sdext/source/presenter/PresenterPaneFactory.cxx
index 6eee8bd1d7cc..008f09ca1253 100644
--- a/sdext/source/presenter/PresenterPaneFactory.cxx
+++ b/sdext/source/presenter/PresenterPaneFactory.cxx
@@ -288,7 +288,7 @@ Reference<XResource> PresenterPaneFactory::CreatePane (
aArguments[4] <<= Reference<drawing::framework::XPaneBorderPainter>(
static_cast<XWeak*>(mpPresenterController->GetPaneBorderPainter().get()),
UNO_QUERY);
- aArguments[5] <<= bIsSpritePane ? false : true;
+ aArguments[5] <<= !bIsSpritePane;
xPane->initialize(aArguments);
// Store pane and canvases and windows in container.