Kaydet (Commit) 8711842d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

bool improvements

Change-Id: I19b429741a2ba972bef8863008657823b9bb7f91
üst a2b1afaf
......@@ -323,7 +323,7 @@ void SdDrawDocument::UpdatePageRelativeURLs(SdPage* pPage, sal_uInt16 nPos, sal_
bool bNotesLink = ( aURLCopy.getLength() >= sNotes.getLength() + 3
&& aURLCopy.endsWith(sNotes) );
if (bNotesLink ^ bNotes)
if (bNotesLink != bNotes)
continue; // no compatible link and page
if (bNotes)
......
......@@ -129,7 +129,7 @@ public:
SdPublishingDesign();
int operator ==(const SdPublishingDesign & rDesign) const;
bool operator ==(const SdPublishingDesign & rDesign) const;
friend SvStream& operator >> (SvStream& rIn, SdPublishingDesign& rDesign);
friend SvStream& WriteSdPublishingDesign(SvStream& rOut, const SdPublishingDesign& rDesign);
};
......@@ -179,7 +179,7 @@ SdPublishingDesign::SdPublishingDesign()
}
// Compares the values without paying attention to the name
int SdPublishingDesign::operator ==(const SdPublishingDesign & rDesign) const
bool SdPublishingDesign::operator ==(const SdPublishingDesign & rDesign) const
{
return
(
......
......@@ -313,7 +313,9 @@ bool SdTransformOOo2xDocument::transformItemSet( SfxItemSet& rSet, bool bNumberi
bool SdTransformOOo2xDocument::removeAlienAttributes( SfxItemSet& rSet )
{
return removeAlienAttributes( rSet, EE_PARA_XMLATTRIBS ) | removeAlienAttributes( rSet, SDRATTR_XMLATTRIBUTES );
bool b = removeAlienAttributes( rSet, EE_PARA_XMLATTRIBS );
b |= removeAlienAttributes( rSet, SDRATTR_XMLATTRIBUTES );
return b;
}
bool SdTransformOOo2xDocument::removeAlienAttributes( SfxItemSet& rSet, sal_uInt16 nWhich )
......
......@@ -127,8 +127,8 @@ public:
static rtl::Reference< SdXImpressDocument > GetModel( SdDrawDocument* pDoc );
// intern
virtual int operator==( const SdXImpressDocument& rModel ) const { return mpDoc == rModel.mpDoc; }
virtual int operator!=( const SdXImpressDocument& rModel ) const { return mpDoc != rModel.mpDoc; }
virtual bool operator==( const SdXImpressDocument& rModel ) const { return mpDoc == rModel.mpDoc; }
virtual bool operator!=( const SdXImpressDocument& rModel ) const { return mpDoc != rModel.mpDoc; }
::sd::DrawDocShell* GetDocShell() const { return mpDocShell; }
SdDrawDocument* GetDoc() const { return mpDoc; }
......
......@@ -842,9 +842,9 @@ short TableDesignDialog::Execute()
if( aImpl.isOptionsChanged() )
aImpl.ApplyOptions();
return true;
return RET_OK;
}
return false;
return RET_CANCEL;
}
// ====================================================================
......
......@@ -773,7 +773,7 @@ void EventMultiplexer::Implementation::CallListeners (EventMultiplexerEvent& rEv
ListenerList::const_iterator iListenerEnd (aCopyListeners.end());
for (; iListener!=iListenerEnd; ++iListener)
{
if ((iListener->second && rEvent.meEventId) != 0)
if ((iListener->second && rEvent.meEventId))
iListener->first.Call(&rEvent);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment