diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /lib/cppparser/macro.h | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/cppparser/macro.h')
-rw-r--r-- | lib/cppparser/macro.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/cppparser/macro.h b/lib/cppparser/macro.h index e8fe0b9c..c4912bb3 100644 --- a/lib/cppparser/macro.h +++ b/lib/cppparser/macro.h @@ -228,7 +228,7 @@ class Macro { } void read( TQDataStream& stream ) { - Q_INT8 i; + TQ_INT8 i; stream >> i; m_idHashValid = i; stream >> i; m_valueHashValid = i; stream >> i; m_hasArguments = i; @@ -244,7 +244,7 @@ class Macro { } void write( TQDataStream& stream ) const { - Q_INT8 i; + TQ_INT8 i; i = m_idHashValid; stream << i; i = m_valueHashValid; stream << i; i = m_hasArguments; stream << i; @@ -266,7 +266,7 @@ class Macro { /** Set the name for this macro */ void setName( const TQString& name ) { m_name = name; - invalidateHash(); + tqinvalidateHash(); } /** Get the file name that contains this macro */ @@ -276,7 +276,7 @@ class Macro { /** Set the file name that contains this macro */ void setFileName( const TQString& fileName ) { m_fileName = fileName; - invalidateHash(); + tqinvalidateHash(); } /** Get the line the macro is defined on */ @@ -304,7 +304,7 @@ class Macro { /** Set the body of the macro */ void setBody( const TQString& body ) { m_body = body; - invalidateHash(); + tqinvalidateHash(); } /** This is used so the lexer does not have to remove macros that should really stay(they are just temporarily shadowed by an isUndef-macro */ @@ -314,7 +314,7 @@ class Macro { void setUndef() { m_isUndefMacro = true; - invalidateHash(); + tqinvalidateHash(); }; /** Check whether the macro has arguments that are passed to it */ @@ -323,7 +323,7 @@ class Macro { } void setHasArguments( bool hasArguments ) { m_hasArguments = hasArguments; - invalidateHash(); + tqinvalidateHash(); } /** Get a list of arguments passed to this macro */ TQValueList<Argument> argumentList() const { @@ -334,7 +334,7 @@ class Macro { void clearArgumentList() { m_argumentList.clear(); m_hasArguments = false; - invalidateHash(); + tqinvalidateHash(); } /** Add an argument to this macro */ void addArgument( const Argument& argument ) { @@ -343,7 +343,7 @@ class Macro { /** Add a list of arguments to this macro */ void addArgumentList( const TQValueList<Argument>& arguments ) { m_argumentList += arguments; - invalidateHash(); + tqinvalidateHash(); } ///This hash respects macro-name and argument-count @@ -359,7 +359,7 @@ class Macro { } private: - inline void invalidateHash() const { + inline void tqinvalidateHash() const { m_idHashValid = m_valueHashValid = false; } |