summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-16 15:23:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-17 08:25:47 +0200
commitccb2a1f650bc505f8a4f1abebf8ce4f9396562a8 (patch)
tree2ee2fd4f300ae95cf23bade1f242e02f9b276c07 /canvas
parentda5c3a1ee43dd1a07cbd1b8005488bf05432593d (diff)
clang-tidy readability-redundant-smartptr-get
redundant get() call on smart pointer Change-Id: Icb5a03bbc15e79a30d3d135a507d22914d15c2bd Reviewed-on: https://gerrit.libreoffice.org/61837 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/tools/elapsedtime.cxx3
-rw-r--r--canvas/source/tools/propertysethelper.cxx10
2 files changed, 4 insertions, 9 deletions
diff --git a/canvas/source/tools/elapsedtime.cxx b/canvas/source/tools/elapsedtime.cxx
index 6cb7fd546a8e..b03a85847313 100644
--- a/canvas/source/tools/elapsedtime.cxx
+++ b/canvas/source/tools/elapsedtime.cxx
@@ -78,8 +78,7 @@ void ElapsedTime::adjustTimer( double fOffset )
double ElapsedTime::getCurrentTime() const
{
- return m_pTimeBase.get() == nullptr
- ? getSystemTime() : m_pTimeBase->getElapsedTimeImpl();
+ return m_pTimeBase == nullptr ? getSystemTime() : m_pTimeBase->getElapsedTimeImpl();
}
double ElapsedTime::getElapsedTime() const
diff --git a/canvas/source/tools/propertysethelper.cxx b/canvas/source/tools/propertysethelper.cxx
index 7fdc153bb5cd..35b67e03e3f0 100644
--- a/canvas/source/tools/propertysethelper.cxx
+++ b/canvas/source/tools/propertysethelper.cxx
@@ -86,7 +86,7 @@ namespace canvas
bool PropertySetHelper::isPropertyName( const OUString& aPropertyName ) const
{
- if( !mpMap.get() )
+ if (!mpMap)
return false;
Callbacks aDummy;
@@ -104,9 +104,7 @@ namespace canvas
const uno::Any& aValue )
{
Callbacks aCallbacks;
- if( !mpMap.get() ||
- !mpMap->lookup( aPropertyName,
- aCallbacks ) )
+ if (!mpMap || !mpMap->lookup(aPropertyName, aCallbacks))
{
throwUnknown( aPropertyName );
}
@@ -120,9 +118,7 @@ namespace canvas
uno::Any PropertySetHelper::getPropertyValue( const OUString& aPropertyName ) const
{
Callbacks aCallbacks;
- if( !mpMap.get() ||
- !mpMap->lookup( aPropertyName,
- aCallbacks ) )
+ if (!mpMap || !mpMap->lookup(aPropertyName, aCallbacks))
{
throwUnknown( aPropertyName );
}