summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-07 15:45:13 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-08 08:26:23 +0200
commit231e16d9091c2d318d99c2f2eb985311e7138127 (patch)
tree7b8d30778cdb696cdf4c0ec80a58f6b488e4d5e5 /tools
parente47172ce2ac486b909ee8f46380dca8efedb6a24 (diff)
loplugin:redundantpointerops simplify *p.get()
Change-Id: I12517651fb3f777fd08e384992bb3e84b340ad85 Reviewed-on: https://gerrit.libreoffice.org/80382 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/debug/debug.cxx2
-rw-r--r--tools/source/inet/inetmime.cxx2
2 files changed, 2 insertions, 2 deletions
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;