diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-30 09:08:43 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-11-30 10:43:43 +0000 |
commit | b18b1e80e9f3359fdfc06dc36dd4f0c15e9344af (patch) | |
tree | fdddf4fde93715d21a53a68a38f1104fbed151bb /desktop | |
parent | 032b63195ea7e23ed677d0c3d89ca0f0bfd0fa20 (diff) |
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 <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/lokclipboard.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<OUString>::get()) { - sal_Char* pText = reinterpret_cast<sal_Char*>(m_aSequence.getArray()); + auto pText = reinterpret_cast<sal_Char*>(m_aSequence.getArray()); aRet <<= OUString(pText, m_aSequence.getLength(), RTL_TEXTENCODING_UTF8); } else |