diff options
Diffstat (limited to 'lib/kofficecore/KoGenStyles.cpp')
-rw-r--r-- | lib/kofficecore/KoGenStyles.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/kofficecore/KoGenStyles.cpp b/lib/kofficecore/KoGenStyles.cpp index 68b8477a..221288df 100644 --- a/lib/kofficecore/KoGenStyles.cpp +++ b/lib/kofficecore/KoGenStyles.cpp @@ -31,7 +31,7 @@ KoGenStyles::~KoGenStyles() TQString KoGenStyles::lookup( const KoGenStyle& style, const TQString& name, int flags ) { - StyleMap::iterator it = m_styleMap.tqfind( style ); + StyleMap::iterator it = m_styleMap.find( style ); if ( it == m_styleMap.end() ) { // Not found, try if this style is in fact equal to its tqparent (the find above // wouldn't have found it, due to m_parentName being set). @@ -52,7 +52,7 @@ TQString KoGenStyles::lookup( const KoGenStyle& style, const TQString& name, int testStyle.m_type = parentStyle->m_type; // Also it's ok to not have the display name of the tqparent style // in the auto style - TQMap<TQString, TQString>::const_iterator it = parentStyle->m_attributes.tqfind( "style:display-name" ); + TQMap<TQString, TQString>::const_iterator it = parentStyle->m_attributes.find( "style:display-name" ); if ( it != parentStyle->m_attributes.end() ) testStyle.addAttribute( "style:display-name", *it ); @@ -84,16 +84,16 @@ TQString KoGenStyles::makeUniqueName( const TQString& base, int flags ) const { // If this name is not used yet, and numbering isn't forced, then the given name is ok. if ( ( flags & DontForceNumbering ) - && m_autoStylesInStylesDotXml.tqfind( base ) == m_autoStylesInStylesDotXml.end() - && m_styleNames.tqfind( base ) == m_styleNames.end() ) + && m_autoStylesInStylesDotXml.find( base ) == m_autoStylesInStylesDotXml.end() + && m_styleNames.find( base ) == m_styleNames.end() ) return base; int num = 1; TQString name; do { name = base; name += TQString::number( num++ ); - } while ( m_autoStylesInStylesDotXml.tqfind( name ) != m_autoStylesInStylesDotXml.end() - || m_styleNames.tqfind( name ) != m_styleNames.end() ); + } while ( m_autoStylesInStylesDotXml.find( name ) != m_autoStylesInStylesDotXml.end() + || m_styleNames.find( name ) != m_styleNames.end() ); return name; } @@ -105,7 +105,7 @@ TQValueList<KoGenStyles::NamedStyle> KoGenStyles::styles( int type, bool markedF const StyleArray::const_iterator end = m_styleArray.end(); for ( ; it != end ; ++it ) { // Look up if it's marked for styles.xml or not by looking up in the corresponding style map. - if ( (*it).style->type() == type && nameMap.tqfind((*it).name) != nameMap.end() ) { + if ( (*it).style->type() == type && nameMap.find((*it).name) != nameMap.end() ) { lst.append( *it ); } } @@ -130,7 +130,7 @@ KoGenStyle* KoGenStyles::styleForModification( const TQString& name ) void KoGenStyles::markStyleForStylesXml( const TQString& name ) { - Q_ASSERT( m_styleNames.tqfind( name ) != m_styleNames.end() ); + Q_ASSERT( m_styleNames.find( name ) != m_styleNames.end() ); m_styleNames.remove( name ); m_autoStylesInStylesDotXml.insert( name, true ); styleForModification( name )->setAutoStyleInStylesDotXml( true ); |