diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:29:58 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-03-01 13:29:58 -0600 |
commit | e8a1cdc01d38125bea12d5494db977ae6429919a (patch) | |
tree | a4e4d6accfecc7d295edc44e9ade6f4fca90fb37 /kioslave/man | |
parent | 32582677547665087f8ad4dae892dc579ec68cfc (diff) | |
download | tdebase-e8a1cdc01d38125bea12d5494db977ae6429919a.tar.gz tdebase-e8a1cdc01d38125bea12d5494db977ae6429919a.zip |
Rename additional global TQt functions
Diffstat (limited to 'kioslave/man')
-rw-r--r-- | kioslave/man/kio_man.cpp | 12 | ||||
-rw-r--r-- | kioslave/man/man2html.cpp | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/kioslave/man/kio_man.cpp b/kioslave/man/kio_man.cpp index 61f3ef45f..4f796c6f9 100644 --- a/kioslave/man/kio_man.cpp +++ b/kioslave/man/kio_man.cpp @@ -1124,7 +1124,7 @@ int compare_man_index(const void *s1, const void *s2) // this is a bit tricky if ( m1->manpage_len > m2->manpage_len) { - i = qstrnicmp( m1->manpage_begin, + i = tqstrnicmp( m1->manpage_begin, m2->manpage_begin, m2->manpage_len); if (!i) @@ -1134,7 +1134,7 @@ int compare_man_index(const void *s1, const void *s2) if ( m1->manpage_len < m2->manpage_len) { - i = qstrnicmp( m1->manpage_begin, + i = tqstrnicmp( m1->manpage_begin, m2->manpage_begin, m1->manpage_len); if (!i) @@ -1142,7 +1142,7 @@ int compare_man_index(const void *s1, const void *s2) return i; } - return qstrnicmp( m1->manpage_begin, + return tqstrnicmp( m1->manpage_begin, m2->manpage_begin, m1->manpage_len); } @@ -1167,7 +1167,7 @@ private: // with the shorter length if (m1->manpage_len > m2->manpage_len) { - i = qstrnicmp(m1->manpage_begin, + i = tqstrnicmp(m1->manpage_begin, m2->manpage_begin, m2->manpage_len); if (!i) @@ -1178,7 +1178,7 @@ private: if (m1->manpage_len > m2->manpage_len) { - i = qstrnicmp(m1->manpage_begin, + i = tqstrnicmp(m1->manpage_begin, m2->manpage_begin, m1->manpage_len); if (!i) @@ -1186,7 +1186,7 @@ private: return i; } - return qstrnicmp(m1->manpage_begin, + return tqstrnicmp(m1->manpage_begin, m2->manpage_begin, m1->manpage_len); } diff --git a/kioslave/man/man2html.cpp b/kioslave/man/man2html.cpp index 2a8a1a19c..ec46b2d3d 100644 --- a/kioslave/man/man2html.cpp +++ b/kioslave/man/man2html.cpp @@ -203,7 +203,7 @@ static char *stralloc(int len) static char *strlimitcpy(char *to, char *from, int n, int limit) { /* Assumes space for limit plus a null */ const int len = n > limit ? limit : n; - qstrncpy(to, from, len + 1); + tqstrncpy(to, from, len + 1); to[len] = '\0'; return to; } @@ -956,7 +956,7 @@ static void out_html(const char *c) if (!c) return; // Added, probably due to the const? - char *c2 = qstrdup(c); + char *c2 = tqstrdup(c); char *c3 = c2; static int obp=0; @@ -1848,7 +1848,7 @@ public: } void setContents(const char *_contents) { delete [] contents; - contents = qstrdup(_contents); + contents = tqstrdup(_contents); } const char *getContents() const { return contents; } @@ -2788,7 +2788,7 @@ static void request_while( char*& c, int j, bool mdoc ) while ( result ) { // Unlike for a normal macro, we have the condition at start, so we do not need to prepend extra bytes - char* liveloop = qstrdup( macro.data() ); + char* liveloop = tqstrdup( macro.data() ); kdDebug(7107) << "Scanning .while condition" << endl; kdDebug(7101) << "Loop macro " << liveloop << endl; char* end_expression = scan_expression( liveloop, &result ); @@ -3165,7 +3165,7 @@ static char *scan_request(char *c) scan_troff_mandoc(wordlist[i],1,&h); else scan_troff(wordlist[i],1,&h); - wordlist[i] = qstrdup(h); + wordlist[i] = tqstrdup(h); delete [] h; } for ( i=words; i<max_wordlist; i++ ) wordlist[i]=NULL; @@ -3175,7 +3175,7 @@ static char *scan_request(char *c) const unsigned int length = (*it).m_output.length(); char* work = new char [length+2]; work[0] = '\n'; // The macro must start after an end of line to allow a request on first line - qstrncpy(work+1,(*it).m_output.data(),length+1); + tqstrncpy(work+1,(*it).m_output.data(),length+1); const TQValueList<char*> oldArgumentList( s_argumentList ); s_argumentList.clear(); for ( i = 0 ; i < max_wordlist; i++ ) |