Cleanup initialization order.

This commit is contained in:
Unknown W. Brackets committed 2013-07-07 20:31:04 -07:00
1 parent a32cf817ff
commit 9608067ca2
3 files changed
+7 -8

No files matched your search

+2 -3
View File
@@ -181,7 +181,7 @@ void PathBrowser::Navigate(const std::string &path) {
if (path_.size() == 3 && path_[1] == ':') {
path_ = "/";
} else {
int slash = path_.rfind('/', path_.size() - 2);
size_t slash = path_.rfind('/', path_.size() - 2);
if (slash != std::string::npos)
path_ = path_.substr(0, slash + 1);
}
@@ -212,9 +212,8 @@ private:
UI::EventReturn GameButtonClick(UI::EventParams &e);
UI::EventReturn NavigateClick(UI::EventParams &e);
bool allowBrowsing_;
PathBrowser path_;
bool allowBrowsing_;
};
GameBrowser::GameBrowser(std::string path, bool allowBrowsing, UI::LayoutParams *layoutParams)