[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/kioslave
From: Allen Winter <winter () kde ! org>
Date: 2006-02-19 0:28:47
Message-ID: 1140308927.994959.7582.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 511157 by winterz:
TRUE->true, FALSE->false
M +1 -1 man/kio_man.cpp
M +2 -2 man/man2html.cpp
M +1 -1 media/kcmodule/notifiermodule.cpp
M +15 -15 nfs/kio_nfs.cpp
M +1 -1 nfs/kio_nfs.h
--- trunk/KDE/kdebase/kioslave/man/kio_man.cpp #511156:511157
@@ -1249,7 +1249,7 @@
#else /* !_USE_QSORT */
QManIndexList manpages;
- manpages.setAutoDelete(TRUE);
+ manpages.setAutoDelete(true);
#endif /* _USE_QSORT */
--- trunk/KDE/kdebase/kioslave/man/man2html.cpp #511156:511157
@@ -776,13 +776,13 @@
if (g!=NULL && f>c && (g-f)<12 && (isalnum(f[-1]) || f[-1]=='>' || ( \
f[-1] == ';' ) ) && isdigit(f[1]) && f[1]!='0' && ((g-f)<=2 || isalpha(f[2])))
{
- ok = TRUE;
+ ok = true;
h = f+2;
while (h<g)
{
if (!isalnum(*h++))
{
- ok = FALSE;
+ ok = false;
break;
}
}
--- trunk/KDE/kdebase/kioslave/media/kcmodule/notifiermodule.cpp #511156:511157
@@ -135,7 +135,7 @@
bool isWritable = action!=0L && action->isWritable();
m_view->deleteButton->setEnabled( isWritable );
m_view->editButton->setEnabled( isWritable );
- m_view->addButton->setEnabled( TRUE );
+ m_view->addButton->setEnabled( true );
m_view->toggleAutoButton->setEnabled( action!=0L && !m_mimetype.isEmpty() );
}
--- trunk/KDE/kdebase/kioslave/nfs/kio_nfs.cpp #511156:511157
@@ -137,9 +137,9 @@
static bool isAbsoluteLink(const QString& path)
{
//hmm, don't know
- if (path.isEmpty()) return TRUE;
- if (path[0]=='/') return TRUE;
- return FALSE;
+ if (path.isEmpty()) return true;
+ if (path[0]=='/') return true;
+ return false;
}
static void createVirtualDirEntry(UDSEntry & entry)
@@ -177,14 +177,14 @@
}
NFSFileHandle::NFSFileHandle()
-:m_isInvalid(FALSE)
+:m_isInvalid(false)
{
memset(m_handle,'\0',NFS_FHSIZE+1);
// m_detectTime=time(0);
}
NFSFileHandle::NFSFileHandle(const NFSFileHandle & handle)
-:m_isInvalid(FALSE)
+:m_isInvalid(false)
{
m_handle[NFS_FHSIZE]='\0';
memcpy(m_handle,handle.m_handle,NFS_FHSIZE);
@@ -207,11 +207,11 @@
{
if (src==0)
{
- m_isInvalid=TRUE;
+ m_isInvalid=true;
return *this;
};
memcpy(m_handle,src,NFS_FHSIZE);
- m_isInvalid=FALSE;
+ m_isInvalid=false;
// m_detectTime=time(0);
return *this;
}
@@ -442,7 +442,7 @@
if (!checkForError(clnt_stat, 0, m_currentHost.latin1())) return;
fhstatus fhStatus;
- bool atLeastOnceSucceeded(FALSE);
+ bool atLeastOnceSucceeded(false);
for(; exportlist!=0;exportlist = exportlist->ex_next) {
kDebug(7121) << "found export: " << exportlist->ex_dir << endl;
@@ -450,7 +450,7 @@
clnt_stat = clnt_call(m_client, MOUNTPROC_MNT,(xdrproc_t) xdr_dirpath, \
(char*)(&(exportlist->ex_dir)),
(xdrproc_t) xdr_fhstatus,(char*) \
&fhStatus,total_timeout); if (fhStatus.fhs_status==0) {
- atLeastOnceSucceeded=TRUE;
+ atLeastOnceSucceeded=true;
NFSFileHandle fh;
fh=fhStatus.fhstatus_u.fhs_fhandle;
QString fname;
@@ -940,7 +940,7 @@
kDebug(7121)<<"rpc error: "<<clientStat<<endl;
//does this mapping make sense ?
error(ERR_CONNECTION_BROKEN,i18n("An RPC error occurred."));
- return FALSE;
+ return false;
}
if (nfsStat!=NFS_OK)
{
@@ -1005,9 +1005,9 @@
error(ERR_UNKNOWN,text);
break;
}
- return FALSE;
+ return false;
}
- return TRUE;
+ return true;
}
void NFSProtocol::del( const KUrl& url, bool isfile)
@@ -1507,7 +1507,7 @@
bool NFSProtocol::isValidLink(const QString& parentDir, const QString& linkDest)
{
kDebug(7121)<<"isValidLink: parent: "<<parentDir<<" link: "<<linkDest<<endl;
- if (linkDest.isEmpty()) return FALSE;
+ if (linkDest.isEmpty()) return false;
if (isAbsoluteLink(linkDest))
{
kDebug(7121)<<"is an absolute link"<<endl;
@@ -1523,7 +1523,7 @@
absDest=QDir::cleanPath(absDest);
kDebug(7121)<<"simplified to "<<absDest<<endl;
if (absDest.find("../")==0)
- return FALSE;
+ return false;
kDebug(7121)<<"is inside the nfs tree"<<endl;
absDest=parentDir+"/"+linkDest;
@@ -1532,6 +1532,6 @@
NFSFileHandle fh=getFileHandle(absDest);
return (!fh.isInvalid());
}
- return FALSE;
+ return false;
}
--- trunk/KDE/kdebase/kioslave/nfs/kio_nfs.h #511156:511157
@@ -45,7 +45,7 @@
NFSFileHandle& operator= (const char* src);
operator const char* () const {return m_handle;};
bool isInvalid() const {return m_isInvalid;}
- void setInvalid() {m_isInvalid=TRUE;};
+ void setInvalid() {m_isInvalid=true;};
// time_t age() const;
protected:
char m_handle[NFS_FHSIZE+1];
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic