Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 24243 → Rev 24244

/trunk/Scribus/scribus/text/scworditerator.cpp
23,6 → 23,11
delete m_wordIterator;
m_wordIterator = nullptr;
}
if (m_unicodeString)
{
delete m_unicodeString;
m_unicodeString = nullptr;
}
}
 
BreakIterator* ScWordIterator::getWordIterator()
39,7 → 44,13
return nullptr;
}
m_wordIterator->setText((const UChar*) m_story.plainText().utf16());
if (m_unicodeString)
{
delete m_unicodeString;
m_unicodeString = nullptr;
}
m_unicodeString = new icu::UnicodeString((const UChar*) m_story.plainText().utf16());
m_wordIterator->setText(*m_unicodeString);
return m_wordIterator;
}
 
/trunk/Scribus/scribus/text/scworditerator.h
16,6 → 16,7
 
U_NAMESPACE_BEGIN
class BreakIterator;
class UnicodeString;
U_NAMESPACE_END
 
class SCRIBUS_API ScWordIterator
32,6 → 33,7
QString word(int pos);
private:
icu::UnicodeString* m_unicodeString { nullptr };
icu::BreakIterator* m_wordIterator { nullptr };
StoryText& m_story;