diff options
Diffstat (limited to 'tqtinterface/qt4/src/tools/tqcomlibrary.cpp')
-rw-r--r-- | tqtinterface/qt4/src/tools/tqcomlibrary.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tqtinterface/qt4/src/tools/tqcomlibrary.cpp b/tqtinterface/qt4/src/tools/tqcomlibrary.cpp index 253f9bf..4bbeee3 100644 --- a/tqtinterface/qt4/src/tools/tqcomlibrary.cpp +++ b/tqtinterface/qt4/src/tools/tqcomlibrary.cpp @@ -273,11 +273,11 @@ static bool tqt_parse_pattern( const char *s, uint *version, uint *flags, # include <sys/mman.h> #endif // TQ_OS_FREEBSD || TQ_OS_LINUX -static long qt_tqfind_pattern( const char *s, ulong s_len, +static long qt_find_pattern( const char *s, ulong s_len, const char *pattern, ulong p_len ) { /* - this uses the same algorithm as TQString::tqfindRev... + this uses the same algorithm as TQString::findRev... we search from the end of the file because on the supported systems, the read-only data/text segments are placed at the end @@ -358,7 +358,7 @@ static bool tqt_unix_query( const TQString &library, uint *version, uint *flags, // verify that the pattern is present in the plugin const char *pattern = "pattern=TQT_UCM_VERIFICATION_DATA"; const ulong plen = tqstrlen( pattern ); - long pos = qt_tqfind_pattern( filedata, fdlen, pattern, plen ); + long pos = qt_find_pattern( filedata, fdlen, pattern, plen ); bool ret = FALSE; if ( pos >= 0 ) { |