diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-08-05 20:01:39 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-08-10 22:03:36 +0200 |
commit | 1f85149ffc723beb939a8d939af339a26d504083 (patch) | |
tree | 937bdeac27cad2a4e181702769fb53926c61da81 /sd | |
parent | 989a4ab7fba919ba242589ac5d4a068d7da33af8 (diff) |
CopyDlg: avoid getTokenCount
OUString managed inside this class either is empty or has 8 tokens,
simplify check.
Change-Id: If576187c6e4800e85f1cebb1ed3e1ae87a4315d1
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/copydlg.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/dlg/copydlg.cxx b/sd/source/ui/dlg/copydlg.cxx index 0debe8156fa9..2da9daec85f1 100644 --- a/sd/source/ui/dlg/copydlg.cxx +++ b/sd/source/ui/dlg/copydlg.cxx @@ -18,7 +18,6 @@ */ #include <copydlg.hxx> -#include <comphelper/string.hxx> #include <svx/colorbox.hxx> #include <svx/dlgutil.hxx> #include <sfx2/module.hxx> @@ -128,9 +127,9 @@ void CopyDlg::Reset() m_pMtrFldHeight->SetMax( nPageHeight ); const SfxPoolItem* pPoolItem = nullptr; - OUString aStr( GetExtraData() ); + const OUString aStr( GetExtraData() ); - if (comphelper::string::getTokenCount(aStr, TOKEN) < 8) + if (aStr.isEmpty()) { if( SfxItemState::SET == mrOutAttrs.GetItemState( ATTR_COPY_NUMBER, true, &pPoolItem ) ) m_pNumFldCopies->SetValue( static_cast<const SfxUInt16Item*>( pPoolItem )->GetValue() ); |