Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz-h committed Dec 28, 2024
1 parent 43be6c6 commit 58dace2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions libs/libs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ if (SATISFACTORY3DMAP_BUILD_APP)
if (NOT portable_file_dialogs_POPULATED)
message(STATUS "Fetch portable_file_dialogs ...")
FetchContent_Populate(portable_file_dialogs)
file(COPY ${CMAKE_SOURCE_DIR}/libs/portable_file_dialogs/CMakeLists.txt DESTINATION ${portable_file_dialogs_SOURCE_DIR})
add_subdirectory(${portable_file_dialogs_SOURCE_DIR} ${portable_file_dialogs_BINARY_DIR} EXCLUDE_FROM_ALL)
mark_as_advanced(FORCE
FETCHCONTENT_SOURCE_DIR_PORTABLE_FILE_DIALOGS
Expand Down
6 changes: 6 additions & 0 deletions libs/portable_file_dialogs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
cmake_minimum_required(VERSION 3.21...3.29 FATAL_ERROR)

project(portable_file_dialogs VERSION 1.0 LANGUAGES CXX)

add_library(${PROJECT_NAME} INTERFACE)
target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
2 changes: 1 addition & 1 deletion map/src/MapWindow/BaseWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace Satisfactory3DMap {
public:
explicit BaseWindow(std::string title = "Window", int width = 1280, int height = 800,
int openGLVersionMajor = 4, int openGLVersionMinor = 5, std::string imguiGlslVersion_ = "#version 450");
~BaseWindow();
virtual ~BaseWindow();

void run();

Expand Down
1 change: 1 addition & 0 deletions map/src/MapWindow/Config/Setting.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace Satisfactory3DMap {
class Setting {
public:
explicit Setting(std::string name) : name_(std::move(name)), hidden_(false) {}
virtual ~Setting() = default;

virtual void accept(SettingVisitor& v) = 0;

Expand Down
2 changes: 2 additions & 0 deletions map/src/MapWindow/Config/SettingVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
namespace Satisfactory3DMap {
class SettingVisitor {
public:
virtual ~SettingVisitor() = default;

virtual void visit(BoolSetting& s) = 0;
virtual void visit(EnumSettingBase& s) = 0;
virtual void visit(FloatSetting& s) = 0;
Expand Down
2 changes: 1 addition & 1 deletion map/src/MapWindow/DataView/DataView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void Satisfactory3DMap::DataView::openSave(const std::filesystem::path& file) {
std::dynamic_pointer_cast<SatisfactorySave::AFGLightweightBuildableSubsystem>(lbs[0]->Object);
}
if (lightweight_buildable_subsystem_ != nullptr) {
std::size_t next_id = proxy_list_.size();
int32_t next_id = static_cast<int32_t>(proxy_list_.size());
auto& instanceMap = lightweight_buildable_subsystem_->mBuildableClassToInstanceArray;
for (std::size_t i = 0; i < instanceMap.Keys.size(); i++) {
const auto& className = instanceMap.Keys[i];
Expand Down
2 changes: 1 addition & 1 deletion map/src/MapWindow/MapWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace Satisfactory3DMap {
class MapWindow final : public BaseWindow {
public:
MapWindow();
~MapWindow();
~MapWindow() override;

[[nodiscard]] const std::shared_ptr<DataView>& dataView() const {
return dataView_;
Expand Down

0 comments on commit 58dace2

Please sign in to comment.