Kaydet (Commit) 1f85149f authored tarafından Matteo Casalin's avatar Matteo Casalin

CopyDlg: avoid getTokenCount

OUString managed inside this class either is empty or has 8 tokens,
simplify check.

Change-Id: If576187c6e4800e85f1cebb1ed3e1ae87a4315d1
üst 989a4ab7
......@@ -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() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment