summaryrefslogtreecommitdiffstats
path: root/lib/kofficecore/KoDocument.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficecore/KoDocument.cpp')
-rw-r--r--lib/kofficecore/KoDocument.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/kofficecore/KoDocument.cpp b/lib/kofficecore/KoDocument.cpp
index e9d985aa..a579e925 100644
--- a/lib/kofficecore/KoDocument.cpp
+++ b/lib/kofficecore/KoDocument.cpp
@@ -747,7 +747,7 @@ KoDocumentInfo *KoDocument::documentInfo() const
void KoDocument::setViewBuildDocument( KoView *view, const TQDomDocument &doc )
{
- if ( d->m_views.tqfind( view ) == -1 )
+ if ( d->m_views.find( view ) == -1 )
return;
uint viewIdx = d->m_views.at();
@@ -762,7 +762,7 @@ TQDomDocument KoDocument::viewBuildDocument( KoView *view )
{
TQDomDocument res;
- if ( d->m_views.tqfind( view ) == -1 )
+ if ( d->m_views.find( view ) == -1 )
return res;
uint viewIdx = d->m_views.at();
@@ -1623,7 +1623,7 @@ bool KoDocument::oldLoadAndParse(KoStore* store, const TQString& filename, TQDom
if (!store->open(filename))
{
kdWarning(30003) << "Entry " << filename << " not found!" << endl;
- d->lastErrorMessage = i18n( "Could not tqfind %1" ).tqarg( filename );
+ d->lastErrorMessage = i18n( "Could not find %1" ).tqarg( filename );
return false;
}
// Error variables for TQDomDocument::setContent
@@ -2199,7 +2199,7 @@ TQCString KoDocument::nativeFormatMimeType() const
TQCString nativeMimeType = service->property( "X-KDE-NativeMimeType" ).toString().latin1();
if ( nativeMimeType.isEmpty() ) {
// shouldn't happen, let's find out why it happened
- if ( !service->serviceTypes().tqcontains( "KOfficePart" ) )
+ if ( !service->serviceTypes().contains( "KOfficePart" ) )
kdWarning(30003) << "Wrong desktop file, KOfficePart isn't mentionned" << endl;
else if ( !KServiceType::serviceType( "KOfficePart" ) )
kdWarning(30003) << "The KOfficePart service type isn't installed!" << endl;
@@ -2290,7 +2290,7 @@ bool KoDocument::isNativeFormat( const TQCString& mimetype ) const
{
if ( mimetype == nativeFormatMimeType() )
return true;
- return extraNativeMimeTypes().tqcontains( mimetype );
+ return extraNativeMimeTypes().contains( mimetype );
}
TQStringList KoDocument::extraNativeMimeTypes() const
@@ -2315,7 +2315,7 @@ int KoDocument::supportedSpecialFormats() const
void KoDocument::addShell( KoMainWindow *shell )
{
- if ( d->m_shells.tqfindRef( shell ) == -1 )
+ if ( d->m_shells.findRef( shell ) == -1 )
{
//kdDebug(30003) << "addShell: shell " << (void*)shell << " added to doc " << this << endl;
d->m_shells.append( shell );