summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-08-10 12:13:27 -0500
committerTimothy Pearson <[email protected]>2011-08-10 12:13:27 -0500
commitd296f1d337dabfeae5191955fdadb874965dbbe9 (patch)
tree1a4b3b4cca01f2ea77eee2497297219d60e9bbd4 /tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp
parenteaa7ee2e0bbca40ba3173c4304f81957e8964291 (diff)
downloadexperimental-d296f1d337dabfeae5191955fdadb874965dbbe9.tar.gz
experimental-d296f1d337dabfeae5191955fdadb874965dbbe9.zip
rename the following methods:
tqparent parent tqmask mask
Diffstat (limited to 'tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp')
-rw-r--r--tqtinterface/qt4/src/tools/tqfileinfo_unix.cpp30
1 files changed, 15 insertions, 15 deletions
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" );