From d296f1d337dabfeae5191955fdadb874965dbbe9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 10 Aug 2011 12:13:27 -0500 Subject: rename the following methods: tqparent parent tqmask mask --- tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp | 30 +++++++++++++------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp') diff --git a/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp b/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp index 4a08916..dcde72a 100644 --- a/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp +++ b/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp @@ -290,33 +290,33 @@ bool TQFileInfo::permission( int permissionSpec ) const if ( !fic || !cache ) doStat(); if ( fic ) { - uint tqmask = 0; + uint mask = 0; if ( permissionSpec & ReadOwner ) - tqmask |= S_IRUSR; + mask |= S_IRUSR; if ( permissionSpec & WriteOwner ) - tqmask |= S_IWUSR; + mask |= S_IWUSR; if ( permissionSpec & ExeOwner ) - tqmask |= S_IXUSR; + mask |= S_IXUSR; if ( permissionSpec & ReadUser ) - tqmask |= S_IRUSR; + mask |= S_IRUSR; if ( permissionSpec & WriteUser ) - tqmask |= S_IWUSR; + mask |= S_IWUSR; if ( permissionSpec & ExeUser ) - tqmask |= S_IXUSR; + mask |= S_IXUSR; if ( permissionSpec & ReadGroup ) - tqmask |= S_IRGRP; + mask |= S_IRGRP; if ( permissionSpec & WriteGroup ) - tqmask |= S_IWGRP; + mask |= S_IWGRP; if ( permissionSpec & ExeGroup ) - tqmask |= S_IXGRP; + mask |= S_IXGRP; if ( permissionSpec & ReadOther ) - tqmask |= S_IROTH; + mask |= S_IROTH; if ( permissionSpec & WriteOther ) - tqmask |= S_IWOTH; + mask |= S_IWOTH; if ( permissionSpec & ExeOther ) - tqmask |= S_IXOTH; - if ( tqmask ) { - return (fic->st.st_mode & tqmask) == tqmask; + mask |= S_IXOTH; + if ( mask ) { + return (fic->st.st_mode & mask) == mask; } else { #if defined(TQT_CHECK_NULL) qWarning( "TQFileInfo::permission: permissionSpec is 0" ); -- cgit v1.2.1