summaryrefslogtreecommitdiffstats
path: root/cppuhelper/source/component.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-06 10:47:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-12 10:11:34 +0200
commit992a33313046f4a4d322db9464c474e7429a019a (patch)
tree494143e3070af872027ecaca840516d3101a881c /cppuhelper/source/component.cxx
parentconvert SwComparePosition to scoped enum (diff)
downloadcore-992a33313046f4a4d322db9464c474e7429a019a.tar.gz
core-992a33313046f4a4d322db9464c474e7429a019a.zip
clang-tidy: readability-else-after-return
run it against sal,cppu,cppuhelper I had to run this multiple times to catch all the cases in each module, and it requires some hand-tweaking of the resulting output - clang-tidy is not very good about cleaning up trailing spaces, and aligning things nicely. Change-Id: I00336345f5f036e12422b98d66526509380c497a Reviewed-on: https://gerrit.libreoffice.org/36194 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppuhelper/source/component.cxx')
-rw-r--r--cppuhelper/source/component.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/cppuhelper/source/component.cxx b/cppuhelper/source/component.cxx
index aa8e68c7dfbb..fdff1a21bab8 100644
--- a/cppuhelper/source/component.cxx
+++ b/cppuhelper/source/component.cxx
@@ -58,7 +58,7 @@ Any OComponentHelper::queryAggregation( Type const & rType )
void * p = static_cast< lang::XComponent * >( this );
return Any( &p, rType );
}
- else if (rType == cppu::UnoType<lang::XTypeProvider>::get())
+ if (rType == cppu::UnoType<lang::XTypeProvider>::get())
{
void * p = static_cast< lang::XTypeProvider * >( this );
return Any( &p, rType );