From 61bf8685836d8e34c606172c15c791d51c1866b4 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 4 Jul 2020 15:12:12 +0200 Subject: [PATCH] Update to newer Arbutils. --- tests/BattleTests/ScriptTests/ScriptAggregatorTests.cpp | 2 +- tests/BattleTests/ScriptTests/ScriptSetTests.cpp | 2 +- tests/BattleTests/ScriptTests/ScriptSourceTest.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/BattleTests/ScriptTests/ScriptAggregatorTests.cpp b/tests/BattleTests/ScriptTests/ScriptAggregatorTests.cpp index 56757e7..4fa4440 100644 --- a/tests/BattleTests/ScriptTests/ScriptAggregatorTests.cpp +++ b/tests/BattleTests/ScriptTests/ScriptAggregatorTests.cpp @@ -12,7 +12,7 @@ private: ArbUt::StringView _name; public: - explicit TestScript(std::string name) : _name(std::move(name)){}; + explicit TestScript(const std::string& name) : _name(name.c_str(), name.length()){}; const ArbUt::StringView& GetName() const noexcept override { return _name; } void TestMethod(int& runCount) { runCount++; } diff --git a/tests/BattleTests/ScriptTests/ScriptSetTests.cpp b/tests/BattleTests/ScriptTests/ScriptSetTests.cpp index 80f5737..b9f850e 100644 --- a/tests/BattleTests/ScriptTests/ScriptSetTests.cpp +++ b/tests/BattleTests/ScriptTests/ScriptSetTests.cpp @@ -12,7 +12,7 @@ private: ArbUt::StringView _name; public: - explicit TestScript(std::string name) : _name(std::move(name)){}; + explicit TestScript(const std::string& name) : _name(name.c_str(), name.length()){}; const ArbUt::StringView& GetName() const noexcept override { return _name; } }; diff --git a/tests/BattleTests/ScriptTests/ScriptSourceTest.cpp b/tests/BattleTests/ScriptTests/ScriptSourceTest.cpp index 207eca1..193d5f2 100644 --- a/tests/BattleTests/ScriptTests/ScriptSourceTest.cpp +++ b/tests/BattleTests/ScriptTests/ScriptSourceTest.cpp @@ -13,7 +13,7 @@ private: ArbUt::StringView _name; public: - explicit TestScript(std::string name) : _name(std::move(name)){}; + explicit TestScript(const std::string& name) : _name(name.c_str(), name.length()){}; const ArbUt::StringView& GetName() const noexcept override { return _name; } void TestMethod(int& runCount) { runCount++; }