From fa53d2ada832ae72574e139773cbfee38968938b Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Wed, 16 Jul 2014 11:40:34 +0100 Subject: [PATCH] Fixed building API. --- CMakeLists.txt | 4 ++-- src/api/api.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 47f3ff18..cf650ca0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,11 +50,11 @@ set (LOOT_SRC "${CMAKE_SOURCE_DIR}/src/backend/metadata.cpp" "${CMAKE_SOURCE_DIR}/src/backend/helpers.cpp" "${CMAKE_SOURCE_DIR}/src/backend/globals.cpp" "${CMAKE_SOURCE_DIR}/src/backend/generators.cpp" - "${CMAKE_SOURCE_DIR}/src/backend/sort.cpp") + "${CMAKE_SOURCE_DIR}/src/backend/sort.cpp" + "${CMAKE_SOURCE_DIR}/src/backend/graph.cpp") set (LOOT_GUI_SRC ${LOOT_SRC} # Code the API doesn't need. - "${CMAKE_SOURCE_DIR}/src/backend/graph.cpp" "${CMAKE_SOURCE_DIR}/src/backend/git.cpp" # Actual GUI code. "${CMAKE_SOURCE_DIR}/src/gui/main_win.cpp" diff --git a/src/api/api.cpp b/src/api/api.cpp index 75acc6cd..18165927 100644 --- a/src/api/api.cpp +++ b/src/api/api.cpp @@ -166,7 +166,7 @@ unsigned int c_error(const unsigned int code, const std::string& what) { // below as dummies. namespace loot { - void Masterlist::GetGitInfo(boost::filesystem::path& path) {} + void Masterlist::GetGitInfo(const boost::filesystem::path& path) {} void Masterlist::Update(Game& game, const unsigned int language) { this->MetadataList::Load(game.MasterlistPath());