From 373a9b9bb62c50072c06e28fd932afb6e71ba687 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 13 Apr 2015 12:35:57 +0200 Subject: loplugin:redundantcast: redundant const_cast followed by implicit upcast Change-Id: I58297ba336d96358eb0683684bbd763870ef56cb --- vcl/source/control/edit.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index a35327a306d2..6c737423d6a8 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -1304,7 +1304,7 @@ void Edit::ImplPaste( uno::Reference< datatransfer::clipboard::XClipboard >& rxC OUString aText; aData >>= aText; if( ImplTruncateToMaxLen( aText, maSelection.Len() ) ) - ShowTruncationWarning( const_cast(this) ); + ShowTruncationWarning( this ); ReplaceSelected( aText ); } catch( const ::com::sun::star::uno::Exception& ) -- cgit