const'ify

svn path=/trunk/KDE/kdebase/workspace/; revision=1014999
This commit is contained in:
Laurent Montel 2009-08-24 11:31:11 +00:00
parent 2588d1fd8d
commit 53ddb9d5fb
3 changed files with 3 additions and 3 deletions

View file

@ -105,7 +105,7 @@ int main( int argc, char *argv[] )
QCoreApplication application( argc, argv );
// generate filename
QString filename = KStandardDirs::locateLocal( "config", "nitrogen_xml_rc" );
const QString filename = KStandardDirs::locateLocal( "config", "nitrogen_xml_rc" );
QTextStream( stdout ) << "nitrogen-convert-exceptions - reading file " << filename << endl;
// open and get DomDocument

View file

@ -80,7 +80,7 @@ namespace Nitrogen
}
//_______________________________________________________
NitrogenException::Type NitrogenException::type( QString value )
NitrogenException::Type NitrogenException::type( const QString& value )
{
if( value == "Window Title" ) return WindowTitle;
else if( value == "Window Class Name" ) return WindowClassName;

View file

@ -120,7 +120,7 @@ namespace Nitrogen
//@{
static QString typeName( Type );
static Type type( QString name );
static Type type( const QString& name );
virtual QString typeName( void ) const
{ return typeName( type() ); }