From 1c1c97cbd1d7913ac12bf550ec02c97f843a0fd3 Mon Sep 17 00:00:00 2001 From: Loïc Blot Date: Sun, 20 Aug 2017 13:30:50 +0200 Subject: Modernize source code: last part (#6285) * Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes --- src/unittest/test_noise.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/unittest/test_noise.cpp') diff --git a/src/unittest/test_noise.cpp b/src/unittest/test_noise.cpp index d1821c950..988ea4495 100644 --- a/src/unittest/test_noise.cpp +++ b/src/unittest/test_noise.cpp @@ -113,7 +113,7 @@ void TestNoise::testNoiseInvalidParams() NoiseParams np_highmem(4, 70, v3f(1, 1, 1), 5, 60, 0.7, 10.0); Noise noise_highmem_3d(&np_highmem, 1337, 200, 200, 200); noise_highmem_3d.perlinMap3D(0, 0, 0, NULL); - } catch (InvalidNoiseParamsException) { + } catch (InvalidNoiseParamsException &) { exception_thrown = true; } -- cgit v1.2.3