[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform/vcs
From: Aleix Pol Gonzalez <aleixpol () gmail ! com>
Date: 2008-07-11 15:05:34
Message-ID: 1215788734.178581.18503.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 830969 by apol:
Use the proper API to clear a value.
M +10 -10 vcslocation.cpp
--- trunk/KDE/kdevplatform/vcs/vcslocation.cpp #830968:830969
@@ -114,11 +114,11 @@
void VcsLocation::setLocalUrl( const KUrl& url )
{
- d->m_repoServer = QString();
- d->m_repoModule = QString();
- d->m_repoBranch = QString();
- d->m_repoTag = QString();
- d->m_repoPath = QString();
+ d->m_repoServer.clear();
+ d->m_repoModule.clear();
+ d->m_repoBranch.clear();
+ d->m_repoTag.clear();
+ d->m_repoPath.clear();
d->m_type = VcsLocation::LocalLocation;
d->m_localUrl = url;
}
@@ -166,28 +166,28 @@
{
d->m_repoModule = module;
d->m_type = VcsLocation::RepositoryLocation;
- d->m_localUrl = KUrl();
+ d->m_localUrl.clear();
}
void VcsLocation::setRepositoryBranch( const QString & branch )
{
d->m_repoBranch = branch;
d->m_type = VcsLocation::RepositoryLocation;
- d->m_localUrl = KUrl();
+ d->m_localUrl.clear();
}
void VcsLocation::setRepositoryTag( const QString & tag )
{
d->m_repoTag = tag;
d->m_type = VcsLocation::RepositoryLocation;
- d->m_localUrl = KUrl();
+ d->m_localUrl.clear();
}
void VcsLocation::setRepositoryPath( const QString & path )
{
d->m_repoPath = path;
d->m_type = VcsLocation::RepositoryLocation;
- d->m_localUrl = KUrl();
+ d->m_localUrl.clear();
}
@@ -199,7 +199,7 @@
void VcsLocation::setUserData( const QVariant& data )
{
d->m_type = VcsLocation::RepositoryLocation;
- d->m_localUrl = KUrl();
+ d->m_localUrl.clear();
d->m_userData = data;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic