diff --git a/src/Application.cpp b/src/Application.cpp index 153f86c2..7c8e277b 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -233,7 +233,6 @@ void Application::processTabsFromFileArgs(KCmdLineArgs* args, QString key = lineParts.at(i).section(':', 0, 0).trimmed().toLower(); QString value = lineParts.at(i).section(':', 1, 1).trimmed(); lineTokens[key] = value; - } // command: is the only token required if (lineTokens.contains("command")) { @@ -323,7 +322,8 @@ void Application::processProfileSelectArgs(KCmdLineArgs* args, MainWindow* window) { if (args->isSet("profile")) { - Profile::Ptr profile = SessionManager::instance()->loadProfile(args->getOption("profile")); + Profile::Ptr profile = SessionManager::instance()->loadProfile( + args->getOption("profile")); if (!profile) profile = SessionManager::instance()->defaultProfile(); diff --git a/src/Application.h b/src/Application.h index 30f1e951..90215132 100644 --- a/src/Application.h +++ b/src/Application.h @@ -17,8 +17,8 @@ 02110-1301 USA. */ -#ifndef APPLICATION_H -#define APPLICATION_H +#ifndef SRC_APPLICATION_H_ +#define SRC_APPLICATION_H_ // KDE #include @@ -39,13 +39,14 @@ class Session; /** * The Konsole Application. * - * The application consists of one or more main windows and a set of factories to create - * new sessions and views. + * The application consists of one or more main windows and a set of + * factories to create new sessions and views. * - * To create a new main window with a default terminal session, call the newInstance() method. - * Empty main windows can be created using newMainWindow(). + * To create a new main window with a default terminal session, call + * the newInstance(). Empty main windows can be created using newMainWindow(). * - * The factory used to create new terminal sessions can be retrieved using the sessionManager() accessor. + * The factory used to create new terminal sessions can be retrieved using + * the sessionManager() accessor. */ class Application : public KUniqueApplication { @@ -71,8 +72,10 @@ public: static Application* self(); private slots: - Session* createSession(Profile::Ptr profile, const QString& directory , ViewManager* view); - Session* createSSHSession(Profile::Ptr profile, const KUrl& url, ViewManager* view); + Session* createSession(Profile::Ptr profile, const QString& directory, + ViewManager* view); + Session* createSSHSession(Profile::Ptr profile, const KUrl& url, + ViewManager* view); void createWindow(Profile::Ptr profile , const QString& directory); void detachView(Session* session); @@ -88,10 +91,10 @@ private: void processProfileSelectArgs(KCmdLineArgs* args, MainWindow* window); void processProfileChangeArgs(KCmdLineArgs* args, MainWindow* window); void processTabsFromFileArgs(KCmdLineArgs* args, MainWindow* window); - void createTabFromArgs(KCmdLineArgs* args, MainWindow* window, const QHash&); + void createTabFromArgs(KCmdLineArgs* args, MainWindow* window, + const QHash&); MainWindow* _backgroundInstance; }; - } -#endif //APPLICATION_H +#endif // SRC_APPLICATION_H_