From e0db2259cc26cab12c6f1131b82dd867c454a3ff Mon Sep 17 00:00:00 2001 From: benmeyer Date: Fri, 08 Nov 2002 16:16:11 +0000 Subject: Code Optimizations --- (limited to 'noncore/net/networksetup/mainwindowimp.cpp') diff --git a/noncore/net/networksetup/mainwindowimp.cpp b/noncore/net/networksetup/mainwindowimp.cpp index 48ef9b3..7b93554 100644 --- a/noncore/net/networksetup/mainwindowimp.cpp +++ b/noncore/net/networksetup/mainwindowimp.cpp @@ -30,7 +30,7 @@ #define DEFAULT_SCHEME "/var/lib/pcmcia/scheme" -MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(parent, name, true), advancedUserMode(false){ +MainWindowImp::MainWindowImp(QWidget *parent, const char *name) : MainWindow(parent, name, true), advancedUserMode(false), scheme(DEFAULT_SCHEME){ connect(addConnectionButton, SIGNAL(clicked()), this, SLOT(addClicked())); connect(removeConnectionButton, SIGNAL(clicked()), this, SLOT(removeClicked())); connect(informationConnectionButton, SIGNAL(clicked()), this, SLOT(informationClicked())); @@ -189,7 +189,7 @@ void MainWindowImp::getAllInterfaces(){ * @param path a directory that is scaned for any plugins that can be loaded * and attempts to load them */ -void MainWindowImp::loadModules(QString path){ +void MainWindowImp::loadModules(const QString &path){ //qDebug(path.latin1()); QDir d(path); if(!d.exists()) @@ -214,7 +214,7 @@ void MainWindowImp::loadModules(QString path){ * @param resolveString - function pointer to resolve * @return pointer to the function with name resolveString or NULL */ -Module* MainWindowImp::loadPlugin(QString pluginFileName, QString resolveString){ +Module* MainWindowImp::loadPlugin(const QString &pluginFileName, const QString &resolveString){ //qDebug(QString("MainWindowImp::loadPlugin: %1").arg(pluginFileName).latin1()); QLibrary *lib = new QLibrary(pluginFileName); void *functionPointer = lib->resolve(resolveString); -- cgit v0.9.0.2