remove straying tabs on line end (no functional change)

This commit is contained in:
Albert S. 2019-10-02 21:53:32 +02:00
parent 4de7236aca
commit ad6fb8d731
5 changed files with 18 additions and 18 deletions

View File

@ -45,9 +45,9 @@ release: qswiki
qswiki: $(WIKIOBJECTS) qswiki: $(WIKIOBJECTS)
$(CXX) $(WIKIOBJECTS) ${LDFLAGS} -I database/hdr -o qswiki $(CXX) $(WIKIOBJECTS) ${LDFLAGS} -I database/hdr -o qswiki
test: $(TESTOBJECTS) test: $(TESTOBJECTS)
$(CXX) $(TESTOBJECTS) ${LDFLAGS} -o test $(CXX) $(TESTOBJECTS) ${LDFLAGS} -o test
gtest: $(GTESTS_TESTDIR)/*.cpp $(GTEST_OBJECTS) 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) $(CXX) -o gtest $(GTESTS_TESTDIR)/*.cpp $(GTEST_OBJECTS) $(GTEST_CXXFLAGS) $(GTEST_DIR)/src/gtest_main.cc $(GTEST_DIR)/src/gtest-all.cc $(GTEST_LDFLAGS)

View File

@ -18,7 +18,7 @@ public:
/* Activated after config has been read. Now we now which paths we need access to */ /* Activated after config has been read. Now we now which paths we need access to */
virtual bool enablePreWorker(std::vector<std::string> fsPaths) = 0; virtual bool enablePreWorker(std::vector<std::string> fsPaths) = 0;
/* Activated after we have acquired resources (bound to ports etc.) /* Activated after we have acquired resources (bound to ports etc.)
* *
* This should allow us to further restrcit the process */ * This should allow us to further restrcit the process */

View File

@ -47,8 +47,8 @@ nav ul
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
} }
nav li nav li
{ {
@ -56,25 +56,25 @@ nav li
padding: 0; padding: 0;
} }
nav a, nav a:visited nav a, nav a:visited
{ {
padding: 10px; padding: 10px;
text-decoration: none; text-decoration: none;
color: white; color: white;
display: block; display: block;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
line-height: 100%; line-height: 100%;
} }
nav a:hover, nav a:focus nav a:hover, nav a:focus
{ {
padding: 10px; padding: 10px;
text-decoration: none; text-decoration: none;
background-color: white; background-color: white;
color: #062463; color: #062463;
display: block; display: block;
@ -176,7 +176,7 @@ footer a, a:visited
{ {
text-decoration: none; text-decoration: none;
color: white; color: white;
display: inline-block; display: inline-block;
} }

View File

@ -33,25 +33,25 @@ TEST(Utils, hasKey) {
ASSERT_FALSE(utils::hasKey(testmap, std::string { "testthere" })); ASSERT_FALSE(utils::hasKey(testmap, std::string { "testthere" }));
ASSERT_FALSE(utils::hasKey(testmap, std::string { })); ASSERT_FALSE(utils::hasKey(testmap, std::string { }));
} }
TEST(Utils, urldecode) TEST(Utils, urldecode)
{ {
std::string testr1 = "abc123=23"; std::string testr1 = "abc123=23";
std::string decoded = utils::urldecode(testr1); std::string decoded = utils::urldecode(testr1);
ASSERT_TRUE(testr1 == decoded); ASSERT_TRUE(testr1 == decoded);
std::string testr2 = "a%20b"; std::string testr2 = "a%20b";
std::string decoded2 = utils::urldecode(testr2); std::string decoded2 = utils::urldecode(testr2);
std::string expected2 = "a b"; std::string expected2 = "a b";
ASSERT_TRUE(decoded2 == expected2); ASSERT_TRUE(decoded2 == expected2);
std::string testr3 = "a%"; std::string testr3 = "a%";
std::string expected3 = "a%"; std::string expected3 = "a%";
std::string decoded3 = utils::urldecode(testr3); std::string decoded3 = utils::urldecode(testr3);
ASSERT_TRUE(testr3 == expected3); ASSERT_TRUE(testr3 == expected3);
} }
TEST(UTILS, toUInt) TEST(UTILS, toUInt)
@ -62,7 +62,7 @@ TEST(UTILS, toUInt)
unsigned int actual = utils::toUInt(number); unsigned int actual = utils::toUInt(number);
ASSERT_EQ(expected, actual); ASSERT_EQ(expected, actual);
}); });
ASSERT_THROW(utils::toUInt("abc"), std::invalid_argument); ASSERT_THROW(utils::toUInt("abc"), std::invalid_argument);
ASSERT_THROW(utils::toUInt("999999999999999999999"), std::out_of_range); ASSERT_THROW(utils::toUInt("999999999999999999999"), std::out_of_range);

View File

@ -71,10 +71,10 @@ std::string utils::urldecode(std::string_view str)
c = std::stoi( h , 0, 16); c = std::stoi( h , 0, 16);
i+=2; i+=2;
} }
} }
result += c; result += c;
} }
return result; return result;
} }