diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-02-20 16:03:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-02-21 08:09:46 +0100 |
commit | ba8a70365ef459c967cd8a71a6d48ca53dd341bd (patch) | |
tree | 397ae034cac2f06ea40ed550a7ce39cf4a42966e /slideshow/source/engine/slide/slideimpl.cxx | |
parent | 0adb36835bcbe55bdf2717556a98e51f1873b19f (diff) |
New loplugin:nestedunnamed
Change-Id: Ifb434589ef08428ce609bc7a40b015d4df13224c
Reviewed-on: https://gerrit.libreoffice.org/50048
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'slideshow/source/engine/slide/slideimpl.cxx')
-rw-r--r-- | slideshow/source/engine/slide/slideimpl.cxx | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx index c81dfff0d10a..ab1214538af3 100644 --- a/slideshow/source/engine/slide/slideimpl.cxx +++ b/slideshow/source/engine/slide/slideimpl.cxx @@ -688,37 +688,34 @@ SlideBitmapSharedPtr SlideImpl::createCurrentSlideBitmap( const UnoViewSharedPtr return std::make_shared<SlideBitmap>( pBitmap ); } -namespace +class MainSequenceSearcher { - class MainSequenceSearcher +public: + MainSequenceSearcher() { - public: - MainSequenceSearcher() - { - maSearchKey.Name = "node-type"; - maSearchKey.Value <<= presentation::EffectNodeType::MAIN_SEQUENCE; - } - - void operator()( const uno::Reference< animations::XAnimationNode >& xChildNode ) - { - uno::Sequence< beans::NamedValue > aUserData( xChildNode->getUserData() ); + maSearchKey.Name = "node-type"; + maSearchKey.Value <<= presentation::EffectNodeType::MAIN_SEQUENCE; + } - if( findNamedValue( aUserData, maSearchKey ) ) - { - maMainSequence = xChildNode; - } - } + void operator()( const uno::Reference< animations::XAnimationNode >& xChildNode ) + { + uno::Sequence< beans::NamedValue > aUserData( xChildNode->getUserData() ); - const uno::Reference< animations::XAnimationNode >& getMainSequence() const + if( findNamedValue( aUserData, maSearchKey ) ) { - return maMainSequence; + maMainSequence = xChildNode; } + } - private: - beans::NamedValue maSearchKey; - uno::Reference< animations::XAnimationNode > maMainSequence; - }; -} + const uno::Reference< animations::XAnimationNode >& getMainSequence() const + { + return maMainSequence; + } + +private: + beans::NamedValue maSearchKey; + uno::Reference< animations::XAnimationNode > maMainSequence; +}; bool SlideImpl::implPrefetchShow() { |