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

List:       kde-devel
Subject:    Re: A note to exceptions && some notes to codesize
From:       David Faure <david.faure () insa-lyon ! fr>
Date:       1999-06-07 22:08:24
[Download RAW message or body]

On Mon, Jun 07, 1999 at 11:59:16PM +0200, Stephan Kulow wrote:
> Bernd Gehrmann wrote:
> > 
> > On Mon, 07 Jun 1999 Mario Weilguni wrote:
> > >Instead of:
> > >  QString aArgv0 = argv[0];
> > >  int nSlashPos = aArgv0.findRev( '/' );
> > >  if( nSlashPos != -1 )
> > >       aAppName = aArgv0.remove( 0, nSlashPos+1 );
> > >  else
> > >       aAppName = aArgv0;
> > >...
> > >You don't think this is a good idea?
> > 
> > I think an even better idea would be to remove this code completely ;-)
> > The application name is available via QApplication::name(), so aAppName
> > is redundant, isn't it?
> > 
> Hmm, I can't see this function. Neither in source or documentation. 
> 

const char* name () const 

in QObject

is set to the application name in QApplication.

-- 
David FAURE
david.faure@insa-lyon.fr, faure@kde.org
http://www.insa-lyon.fr/People/AEDI/dfaure/index.html 
KDE, Making The Future of Computing Available Today

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

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