summaryrefslogtreecommitdiff
path: root/src/craftdef.cpp
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2016-03-19 12:08:24 -0400
committerShadowNinja <shadowninja@minetest.net>2016-03-19 21:27:57 -0400
commit93887043d9443ba6627fea68921994d0f1896517 (patch)
tree7199a98377b19afc01517ab795bc4d6dfa073130 /src/craftdef.cpp
parenteb7db21d50f866d1e847d7556f83995294a7e54f (diff)
downloadminetest-93887043d9443ba6627fea68921994d0f1896517.tar.gz
minetest-93887043d9443ba6627fea68921994d0f1896517.tar.bz2
minetest-93887043d9443ba6627fea68921994d0f1896517.zip
Clean up Strfnd
Changes: * Fix indentation. * Pass strings by const reference. * Merge Strfnd and WStrfnd into one class instead of copying them. * Remove trailing spaces. * Fix variable names. * Move to util. * Other miscellaneous style fixes.
Diffstat (limited to 'src/craftdef.cpp')
-rw-r--r--src/craftdef.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/craftdef.cpp b/src/craftdef.cpp
index 67c3ae62a..d3f1edaf9 100644
--- a/src/craftdef.cpp
+++ b/src/craftdef.cpp
@@ -29,7 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "util/serialize.h"
#include "util/string.h"
#include "util/numeric.h"
-#include "strfnd.h"
+#include "util/strfnd.h"
#include "exceptions.h"
inline bool isGroupRecipeStr(const std::string &rec_name)
@@ -90,7 +90,7 @@ static bool inputItemMatchesRecipe(const std::string &inp_name,
all_groups_match = false;
break;
}
- } while (!f.atend());
+ } while (!f.at_end());
if (all_groups_match)
return true;
}