From b18b1e80e9f3359fdfc06dc36dd4f0c15e9344af Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 30 Nov 2016 09:08:43 +0100 Subject: sw: use auto when initializing with a cast to avoid duplicating the type name Change-Id: Ide7bd0f1f444824b78aa53cfe1db0129cbca1a5d Reviewed-on: https://gerrit.libreoffice.org/31397 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- desktop/source/lib/lokclipboard.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop') diff --git a/desktop/source/lib/lokclipboard.cxx b/desktop/source/lib/lokclipboard.cxx index fa74fa0513b4..deab34f47445 100644 --- a/desktop/source/lib/lokclipboard.cxx +++ b/desktop/source/lib/lokclipboard.cxx @@ -42,7 +42,7 @@ throw(datatransfer::UnsupportedFlavorException, io::IOException, uno::RuntimeExc uno::Any aRet; if (rFlavor.DataType == cppu::UnoType::get()) { - sal_Char* pText = reinterpret_cast(m_aSequence.getArray()); + auto pText = reinterpret_cast(m_aSequence.getArray()); aRet <<= OUString(pText, m_aSequence.getLength(), RTL_TEXTENCODING_UTF8); } else -- cgit