Kaydet (Commit) 7a5d2b3c authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:returnconstant in unoxml,uui

Change-Id: Iac240f59acf8404fe5439a7e450c048df0d7a54e
Reviewed-on: https://gerrit.libreoffice.org/58879
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 412215fb
...@@ -69,7 +69,7 @@ public: ...@@ -69,7 +69,7 @@ public:
const OUString& aType, const OUString& aType,
const css::uno::Reference< css::xml::dom::events::XEvent >& xEvent); const css::uno::Reference< css::xml::dom::events::XEvent >& xEvent);
bool dispatchEvent( void dispatchEvent(
DOM::CDocument & rDocument, DOM::CDocument & rDocument,
::osl::Mutex & rMutex, ::osl::Mutex & rMutex,
xmlNodePtr const pNode, xmlNodePtr const pNode,
......
...@@ -102,7 +102,7 @@ namespace DOM { namespace events { ...@@ -102,7 +102,7 @@ namespace DOM { namespace events {
} }
} }
bool CEventDispatcher::dispatchEvent( void CEventDispatcher::dispatchEvent(
DOM::CDocument & rDocument, ::osl::Mutex & rMutex, DOM::CDocument & rDocument, ::osl::Mutex & rMutex,
xmlNodePtr const pNode, Reference<XNode> const& xNode, xmlNodePtr const pNode, Reference<XNode> const& xNode,
Reference< XEvent > const& i_xEvent) const Reference< XEvent > const& i_xEvent) const
...@@ -117,7 +117,7 @@ namespace DOM { namespace events { ...@@ -117,7 +117,7 @@ namespace DOM { namespace events {
} }
if (captureListeners.empty() && targetListeners.empty()) if (captureListeners.empty() && targetListeners.empty())
return true; return;
CEvent *pEvent = nullptr; // pointer to internal event representation CEvent *pEvent = nullptr; // pointer to internal event representation
...@@ -222,7 +222,7 @@ namespace DOM { namespace events { ...@@ -222,7 +222,7 @@ namespace DOM { namespace events {
{ {
pEvent->m_currentTarget = rinode->first; pEvent->m_currentTarget = rinode->first;
callListeners(captureListeners, rinode->second, aType, xEvent); callListeners(captureListeners, rinode->second, aType, xEvent);
if (pEvent->m_canceled) return true; if (pEvent->m_canceled) return;
++rinode; ++rinode;
} }
...@@ -232,7 +232,7 @@ namespace DOM { namespace events { ...@@ -232,7 +232,7 @@ namespace DOM { namespace events {
pEvent->m_phase = PhaseType_AT_TARGET; pEvent->m_phase = PhaseType_AT_TARGET;
pEvent->m_currentTarget = inode->first; pEvent->m_currentTarget = inode->first;
callListeners(targetListeners, inode->second, aType, xEvent); callListeners(targetListeners, inode->second, aType, xEvent);
if (pEvent->m_canceled) return true; if (pEvent->m_canceled) return;
// bubbeling phase // bubbeling phase
++inode; ++inode;
if (i_xEvent->getBubbles()) { if (i_xEvent->getBubbles()) {
...@@ -242,12 +242,11 @@ namespace DOM { namespace events { ...@@ -242,12 +242,11 @@ namespace DOM { namespace events {
pEvent->m_currentTarget = inode->first; pEvent->m_currentTarget = inode->first;
callListeners(targetListeners, callListeners(targetListeners,
inode->second, aType, xEvent); inode->second, aType, xEvent);
if (pEvent->m_canceled) return true; if (pEvent->m_canceled) return;
++inode; ++inode;
} }
} }
} }
return true;
} }
}} }}
......
...@@ -724,7 +724,7 @@ UUIInteractionHelper::handlePasswordRequest( ...@@ -724,7 +724,7 @@ UUIInteractionHelper::handlePasswordRequest(
return false; return false;
} }
bool void
UUIInteractionHelper::handleAuthFallbackRequest( OUString & instructions, UUIInteractionHelper::handleAuthFallbackRequest( OUString & instructions,
OUString & url, OUString & url,
uno::Sequence< uno::Reference< task::XInteractionContinuation > > const & rContinuations ) uno::Sequence< uno::Reference< task::XInteractionContinuation > > const & rContinuations )
...@@ -741,8 +741,6 @@ UUIInteractionHelper::handleAuthFallbackRequest( OUString & instructions, ...@@ -741,8 +741,6 @@ UUIInteractionHelper::handleAuthFallbackRequest( OUString & instructions,
xAuthFallback->setCode(dlg.GetCode()); xAuthFallback->setCode(dlg.GetCode());
xAuthFallback->select( ); xAuthFallback->select( );
} }
return true;
} }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -235,7 +235,7 @@ private: ...@@ -235,7 +235,7 @@ private:
const OUString& i_rServiceName const OUString& i_rServiceName
) const; ) const;
bool void
handleAuthFallbackRequest( handleAuthFallbackRequest(
OUString & instructions, OUString & instructions,
OUString & url, OUString & url,
......
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