Trivial move of a variable in a smaller “ifndef” scope

This commit is contained in:
louiz’
2018-08-23 18:54:16 +02:00
parent d7bc737751
commit 4a583c7b7e
+1 -1
View File
@@ -21,8 +21,8 @@ TEST_CASE("jidprep")
{ {
// Jidprep // Jidprep
const std::string badjid("~zigougou™@EpiK-7D9D1FDE.poez.io/Boujour/coucou/slt™"); const std::string badjid("~zigougou™@EpiK-7D9D1FDE.poez.io/Boujour/coucou/slt™");
const std::string correctjid = jidprep(badjid);
#ifdef LIBIDN_FOUND #ifdef LIBIDN_FOUND
const std::string correctjid = jidprep(badjid);
CHECK(correctjid == "~zigougoutm@epik-7d9d1fde.poez.io/Boujour/coucou/sltTM"); CHECK(correctjid == "~zigougoutm@epik-7d9d1fde.poez.io/Boujour/coucou/sltTM");
// Check that the cache does not break things when we prep the same string // Check that the cache does not break things when we prep the same string
// multiple times // multiple times