Refactor PluginSorter class

This commit is contained in:
Oliver Hamlet
2016-05-23 07:15:25 +01:00
parent 4fd3fb9695
commit aaf006407a
7 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -137,11 +137,11 @@ set (LOOT_SRC "${CMAKE_SOURCE_DIR}/src/backend/app/loot_settings.cpp"
"${CMAKE_SOURCE_DIR}/src/backend/metadata_list.cpp"
"${CMAKE_SOURCE_DIR}/src/backend/masterlist.cpp"
"${CMAKE_SOURCE_DIR}/src/backend/plugin/plugin.cpp"
"${CMAKE_SOURCE_DIR}/src/backend/plugin/plugin_sorter.cpp"
"${CMAKE_SOURCE_DIR}/src/backend/helpers/git_helper.cpp"
"${CMAKE_SOURCE_DIR}/src/backend/helpers/helpers.cpp"
"${CMAKE_SOURCE_DIR}/src/backend/helpers/language.cpp"
"${CMAKE_SOURCE_DIR}/src/backend/helpers/version.cpp"
"${CMAKE_SOURCE_DIR}/src/backend/plugin_sorter.cpp"
"${CMAKE_BINARY_DIR}/generated/globals.cpp")
set (LOOT_HEADERS "${CMAKE_SOURCE_DIR}/src/backend/app/loot_settings.h"
@@ -162,6 +162,7 @@ set (LOOT_HEADERS "${CMAKE_SOURCE_DIR}/src/backend/app/loot_settings.h"
"${CMAKE_SOURCE_DIR}/src/backend/metadata_list.h"
"${CMAKE_SOURCE_DIR}/src/backend/masterlist.h"
"${CMAKE_SOURCE_DIR}/src/backend/plugin/plugin.h"
"${CMAKE_SOURCE_DIR}/src/backend/plugin/plugin_sorter.h"
"${CMAKE_SOURCE_DIR}/src/backend/helpers/git_helper.h"
"${CMAKE_SOURCE_DIR}/src/backend/helpers/helpers.h"
"${CMAKE_SOURCE_DIR}/src/backend/helpers/json.h"
@@ -169,7 +170,6 @@ set (LOOT_HEADERS "${CMAKE_SOURCE_DIR}/src/backend/app/loot_settings.h"
"${CMAKE_SOURCE_DIR}/src/backend/helpers/version.h"
"${CMAKE_SOURCE_DIR}/src/backend/helpers/yaml_set_helpers.h"
"${CMAKE_SOURCE_DIR}/src/backend/globals.h"
"${CMAKE_SOURCE_DIR}/src/backend/plugin_sorter.h"
"${CMAKE_SOURCE_DIR}/src/backend/error.h")
set (LOOT_GUI_SRC ${LOOT_SRC}
@@ -244,9 +244,9 @@ set (LOOT_TESTS_HEADERS "${CMAKE_SOURCE_DIR}/src/tests/base_game_test.h"
"${CMAKE_SOURCE_DIR}/src/tests/backend/metadata/plugin_metadata_test.h"
"${CMAKE_SOURCE_DIR}/src/tests/backend/metadata/tag_test.h"
"${CMAKE_SOURCE_DIR}/src/tests/backend/plugin/plugin_test.h"
"${CMAKE_SOURCE_DIR}/src/tests/backend/plugin/plugin_sorter_test.h"
"${CMAKE_SOURCE_DIR}/src/tests/backend/masterlist_test.h"
"${CMAKE_SOURCE_DIR}/src/tests/backend/metadata_list_test.h"
"${CMAKE_SOURCE_DIR}/src/tests/backend/plugin_sorter_test.h")
"${CMAKE_SOURCE_DIR}/src/tests/backend/metadata_list_test.h")
source_group("Header Files\\backend" FILES ${LOOT_HEADERS})
source_group("Header Files\\gui" FILES ${LOOT_GUI_HEADERS})
+1 -1
View File
@@ -26,7 +26,7 @@
#include "loot_db.h"
#include "../backend/error.h"
#include "../backend/globals.h"
#include "../backend/plugin_sorter.h"
#include "../backend/plugin/plugin_sorter.h"
#include <yaml-cpp/yaml.h>
@@ -22,10 +22,10 @@
<http://www.gnu.org/licenses/>.
*/
#include "game/game.h"
#include "error.h"
#include "plugin_sorter.h"
#include "helpers/helpers.h"
#include "backend/game/game.h"
#include "backend/error.h"
#include "backend/helpers/helpers.h"
#include <cstdlib>
@@ -22,10 +22,10 @@
<http://www.gnu.org/licenses/>.
*/
#ifndef __LOOT_GRAPH__
#define __LOOT_GRAPH__
#ifndef LOOT_BACKEND_PLUGIN_SORTER
#define LOOT_BACKEND_PLUGIN_SORTER
#include "plugin/plugin.h"
#include "plugin.h"
#include <map>
+1 -1
View File
@@ -29,7 +29,7 @@
#include "../backend/error.h"
#include "../backend/globals.h"
#include "../backend/plugin_sorter.h"
#include "../backend/plugin/plugin_sorter.h"
#include "../backend/helpers/helpers.h"
#include "../backend/helpers/json.h"
#include "../backend/helpers/version.h"
@@ -25,7 +25,7 @@ along with LOOT. If not, see
#ifndef LOOT_TEST_BACKEND_PLUGIN_SORTER
#define LOOT_TEST_BACKEND_PLUGIN_SORTER
#include "backend/plugin_sorter.h"
#include "backend/plugin/plugin_sorter.h"
#include "tests/base_game_test.h"
namespace loot {
+1 -1
View File
@@ -62,9 +62,9 @@
#include "backend/metadata/plugin_metadata_test.h"
#include "backend/metadata/tag_test.h"
#include "backend/plugin/plugin_test.h"
#include "backend/plugin/plugin_sorter_test.h"
#include "backend/masterlist_test.h"
#include "backend/metadata_list_test.h"
#include "backend/plugin_sorter_test.h"
#include <boost/log/core.hpp>