From ad6fb8d731f6fcaca5668ccd16e14caa8e2b1b70 Mon Sep 17 00:00:00 2001 From: Albert S Date: Wed, 2 Oct 2019 21:53:32 +0200 Subject: [PATCH] remove straying tabs on line end (no functional change) --- Makefile | 4 ++-- sandbox/sandbox.h | 2 +- template/quitesimple/style.css | 14 +++++++------- tests/utils.cpp | 12 ++++++------ utils.cpp | 4 ++-- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 7ea09c9..3324160 100644 --- a/Makefile +++ b/Makefile @@ -45,9 +45,9 @@ release: qswiki qswiki: $(WIKIOBJECTS) $(CXX) $(WIKIOBJECTS) ${LDFLAGS} -I database/hdr -o qswiki -test: $(TESTOBJECTS) +test: $(TESTOBJECTS) $(CXX) $(TESTOBJECTS) ${LDFLAGS} -o test - + gtest: $(GTESTS_TESTDIR)/*.cpp $(GTEST_OBJECTS) $(CXX) -o gtest $(GTESTS_TESTDIR)/*.cpp $(GTEST_OBJECTS) $(GTEST_CXXFLAGS) $(GTEST_DIR)/src/gtest_main.cc $(GTEST_DIR)/src/gtest-all.cc $(GTEST_LDFLAGS) diff --git a/sandbox/sandbox.h b/sandbox/sandbox.h index f1d2a8c..91a8b3e 100644 --- a/sandbox/sandbox.h +++ b/sandbox/sandbox.h @@ -18,7 +18,7 @@ public: /* Activated after config has been read. Now we now which paths we need access to */ virtual bool enablePreWorker(std::vector fsPaths) = 0; - + /* Activated after we have acquired resources (bound to ports etc.) * * This should allow us to further restrcit the process */ diff --git a/template/quitesimple/style.css b/template/quitesimple/style.css index 59607b4..5d30a09 100644 --- a/template/quitesimple/style.css +++ b/template/quitesimple/style.css @@ -47,8 +47,8 @@ nav ul display: flex; align-items: center; flex-wrap: wrap; - - + + } nav li { @@ -56,25 +56,25 @@ nav li padding: 0; - + } nav a, nav a:visited { padding: 10px; text-decoration: none; - color: white; + color: white; display: block; font-weight: bold; text-align: center; line-height: 100%; - + } nav a:hover, nav a:focus { padding: 10px; - text-decoration: none; + text-decoration: none; background-color: white; color: #062463; display: block; @@ -176,7 +176,7 @@ footer a, a:visited { text-decoration: none; - color: white; + color: white; display: inline-block; } diff --git a/tests/utils.cpp b/tests/utils.cpp index 837127b..ac5e1b1 100644 --- a/tests/utils.cpp +++ b/tests/utils.cpp @@ -33,25 +33,25 @@ TEST(Utils, hasKey) { ASSERT_FALSE(utils::hasKey(testmap, std::string { "testthere" })); ASSERT_FALSE(utils::hasKey(testmap, std::string { })); -} +} TEST(Utils, urldecode) { std::string testr1 = "abc123=23"; std::string decoded = utils::urldecode(testr1); ASSERT_TRUE(testr1 == decoded); - + std::string testr2 = "a%20b"; std::string decoded2 = utils::urldecode(testr2); std::string expected2 = "a b"; ASSERT_TRUE(decoded2 == expected2); - + std::string testr3 = "a%"; std::string expected3 = "a%"; - + std::string decoded3 = utils::urldecode(testr3); ASSERT_TRUE(testr3 == expected3); - + } TEST(UTILS, toUInt) @@ -62,7 +62,7 @@ TEST(UTILS, toUInt) unsigned int actual = utils::toUInt(number); ASSERT_EQ(expected, actual); }); - + ASSERT_THROW(utils::toUInt("abc"), std::invalid_argument); ASSERT_THROW(utils::toUInt("999999999999999999999"), std::out_of_range); diff --git a/utils.cpp b/utils.cpp index ca5d09d..4c8be10 100644 --- a/utils.cpp +++ b/utils.cpp @@ -71,10 +71,10 @@ std::string utils::urldecode(std::string_view str) c = std::stoi( h , 0, 16); i+=2; } - + } result += c; - + } return result; }