[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-devel
Subject:    Re: support for remote projects (fish / ftp / etc.)
From:       Andreas Pakulat <apaku () gmx ! de>
Date:       2009-03-25 19:31:40
Message-ID: 20090325193140.GA26299 () neo ! apaku ! dnsalias ! org
[Download RAW message or body]

On 25.03.09 20:19:03, Milian Wolff wrote:
> On Tuesday 24 March 2009, Andreas Pakulat wrote:
> > On 24.03.09 21:29:20, Milian Wolff wrote:
> > >          statJob = KIO::stat( developerFileUrl, KIO::HideProgressInfo );
> > >          if( !statJob->exec() )
> > >          {
> > > -            KUrl dir = KUrl( projectFileUrl.directory(
> > > KUrl::AppendTrailingSlash ) + ".kdev4"); +            KUrl dir =
> > > projectFileUrl;
> > > +            dir.setPath( dir.directory( KUrl::AppendTrailingSlash ) +
> > > ".kdev4" );
> >
> > You could use dir.addPath( ".kdev4" ) instead here.
> 
> Just ported the old code here. But yes, I could use addPath - would be 
> basically the same, just a line more, maybe a bit more readable.

Hmm, actually I thought we'd have the same amount of lines but clearer
code. But apparently my eyes saw something different than my brain. Its not
much clearer with addPath, so it can stay as is.

Andreas
 
-- 
A visit to a strange place will bring fresh work.

_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic