Skip to content

Commit 63e6161

Browse files
committed
GCC/Clang build and warning fixes
1 parent ea9b5f9 commit 63e6161

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

src/MapEditor/Renderer/MCAnimations.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22

33
#include "Geometry/Plane.h"
4-
#include "Geometry/RectFwd.h"
4+
#include "Geometry/Rect.h"
55

66
namespace slade
77
{

src/Scripting/UI/ScriptManagerWindow.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ void ScriptManagerWindow::bindEvents()
415415
// Tree item activate
416416
tree_scripts_->Bind(
417417
wxEVT_TREE_ITEM_ACTIVATED,
418-
[=](wxTreeEvent& e)
418+
[this](wxTreeEvent& e)
419419
{
420420
auto data = dynamic_cast<ScriptTreeItemData*>(tree_scripts_->GetItemData(e.GetItem()));
421421
if (data && data->script)
@@ -443,7 +443,7 @@ void ScriptManagerWindow::bindEvents()
443443
// Window close
444444
Bind(
445445
wxEVT_CLOSE_WINDOW,
446-
[=](wxCloseEvent&)
446+
[this](wxCloseEvent&)
447447
{
448448
// Save Layout
449449
saveLayout();

src/Utility/FileUtils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#include "App.h"
3737
#include "StringUtils.h"
3838
#include "thirdparty/xxhash/xxhash.h"
39+
#include <chrono>
3940
#include <filesystem>
4041
#include <fstream>
4142

src/ZReaders/tarray.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ template<class T, class TT=T>
338338
class TDeletingArray : public TArray<T, TT>
339339
{
340340
public:
341-
~TDeletingArray<T, TT> ()
341+
~TDeletingArray ()
342342
{
343343
for (unsigned int i = 0; i < TArray<T,TT>::Size(); ++i)
344344
{

0 commit comments

Comments
 (0)