From f636ba5ba2df9d34d56b1c85f24c6598fa1cb645 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 27 Jun 2011 05:58:16 +0000 Subject: TQt4 port kdiff3 This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kdiff3@1238464 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff_ext_for_kdiff3/diff_ext.cpp | 14 +++++++------- diff_ext_for_kdiff3/diffextstring.h | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'diff_ext_for_kdiff3') diff --git a/diff_ext_for_kdiff3/diff_ext.cpp b/diff_ext_for_kdiff3/diff_ext.cpp index f83f068..af877e7 100755 --- a/diff_ext_for_kdiff3/diff_ext.cpp +++ b/diff_ext_for_kdiff3/diff_ext.cpp @@ -135,7 +135,7 @@ void readTranslationFile() static tstring getTranslation( const tstring& fallback ) { - std::map< std::wstring, std::wstring >::iterator i = s_translationMap.find( fallback ); + std::map< std::wstring, std::wstring >::iterator i = s_translationMap.tqfind( fallback ); if (i!=s_translationMap.end()) return i->second; return fallback; @@ -153,14 +153,14 @@ static tstring getTranslation( const tstring& fallback ) static void replaceArgs( tstring& s, const tstring& r1, const tstring& r2=TEXT(""), const tstring& r3=TEXT("") ) { tstring arg1 = TEXT("%1"); - size_t pos1 = s.find( arg1 ); + size_t pos1 = s.tqfind( arg1 ); tstring arg2 = TEXT("%2"); - size_t pos2 = s.find( arg2 ); + size_t pos2 = s.tqfind( arg2 ); tstring arg3 = TEXT("%3"); - size_t pos3 = s.find( arg3 ); + size_t pos3 = s.tqfind( arg3 ); if ( pos1 != size_t(-1) ) { - s.replace( pos1, arg1.length(), r1 ); + s.tqreplace( pos1, arg1.length(), r1 ); if ( pos2 != size_t(-1) && pos1