const'ify
svn path=/trunk/KDE/kdebase/workspace/; revision=1014999
This commit is contained in:
parent
2588d1fd8d
commit
53ddb9d5fb
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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() ); }
|
||||
|
|
Loading…
Reference in a new issue