Skip to content

Commit

Permalink
#5911: Downgrade GUI loader to use the ThreadedDefLoader base, since …
Browse files Browse the repository at this point in the history
…it doesn't immediately parse the decl
  • Loading branch information
codereader committed Mar 2, 2022
1 parent 170eda7 commit 4f90626
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/dm.gui/gui/GuiManager.cpp
Expand Up @@ -11,7 +11,7 @@ namespace gui
{

GuiManager::GuiManager() :
_guiLoader(GUI_DIR, GUI_EXT, std::bind(&GuiManager::findGuis, this))
_guiLoader(std::bind(&GuiManager::findGuis, this))
{}

void GuiManager::registerGui(const std::string& guiPath)
Expand Down
4 changes: 2 additions & 2 deletions plugins/dm.gui/gui/GuiManager.h
Expand Up @@ -5,7 +5,7 @@
#include <map>
#include "ifilesystem.h"
#include "string/string.h"
#include "parser/ThreadedDeclParser.h"
#include "ThreadedDefLoader.h"

namespace gui
{
Expand Down Expand Up @@ -50,7 +50,7 @@ class GuiManager :
typedef std::map<std::string, GuiInfo> GuiInfoMap;
GuiInfoMap _guis;

parser::ThreadedDeclParser<void> _guiLoader;
util::ThreadedDefLoader<void> _guiLoader;

// A List of all the errors occuring lastly.
StringList _errorList;
Expand Down

0 comments on commit 4f90626

Please sign in to comment.