From 231e16d9091c2d318d99c2f2eb985311e7138127 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 7 Oct 2019 15:45:13 +0200 Subject: loplugin:redundantpointerops simplify *p.get() Change-Id: I12517651fb3f777fd08e384992bb3e84b340ad85 Reviewed-on: https://gerrit.libreoffice.org/80382 Tested-by: Jenkins Reviewed-by: Noel Grandin --- tools/source/debug/debug.cxx | 2 +- tools/source/inet/inetmime.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx index 22c3b08698bd..4d4a817a7f40 100644 --- a/tools/source/debug/debug.cxx +++ b/tools/source/debug/debug.cxx @@ -110,7 +110,7 @@ static void exceptionToStringImpl(OStringBuffer& sMessage, const css::uno::Any & } if ( exception.Context.is() ) { - const char* pContext = typeid( *exception.Context.get() ).name(); + const char* pContext = typeid( *exception.Context ).name(); #if defined __GLIBCXX__ // demangle the type name, not necessary under windows, we already get demangled names there int status; diff --git a/tools/source/inet/inetmime.cxx b/tools/source/inet/inetmime.cxx index 49038921b7a8..f1c9080996dd 100644 --- a/tools/source/inet/inetmime.cxx +++ b/tools/source/inet/inetmime.cxx @@ -296,7 +296,7 @@ bool translateUTF8Char(const sal_Char *& rBegin, return false; DBG_ASSERT(nSize == 1, "translateUTF8Char(): Bad conversion"); - rCharacter = *pBuffer.get(); + rCharacter = pBuffer[0]; } rBegin = p; return true; -- cgit