From cff8c1925f426dafaeb32def5fc56f170bafba39 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 May 2013 19:29:13 +0300 Subject: Improve shortcutswindow class. --- src/gui/shortcutwindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gui/shortcutwindow.cpp') diff --git a/src/gui/shortcutwindow.cpp b/src/gui/shortcutwindow.cpp index 6f00e36c2..ef893c1ba 100644 --- a/src/gui/shortcutwindow.cpp +++ b/src/gui/shortcutwindow.cpp @@ -54,7 +54,7 @@ class ShortcutTab final : public Tab ShortcutWindow::ShortcutWindow(const std::string &title, ShortcutContainer *const content, - std::string skinFile, + const std::string &skinFile, int width, int height) : Window("Window", false, nullptr, skinFile), mItems(content), @@ -104,7 +104,8 @@ ShortcutWindow::ShortcutWindow(const std::string &title, enableVisibleSound(true); } -ShortcutWindow::ShortcutWindow(const std::string &title, std::string skinFile, +ShortcutWindow::ShortcutWindow(const std::string &title, + const std::string &skinFile, const int width, const int height) : Window("Window", false, nullptr, skinFile), mItems(nullptr), @@ -152,7 +153,8 @@ ShortcutWindow::~ShortcutWindow() mItems = nullptr; } -void ShortcutWindow::addTab(std::string name, ShortcutContainer *const content) +void ShortcutWindow::addTab(const std::string &name, + ShortcutContainer *const content) { ScrollArea *const scroll = new ScrollArea(content, false); scroll->setPosition(SCROLL_PADDING, SCROLL_PADDING); -- cgit v1.2.3-70-g09d2