get rid of all mysterious numbers that meant length of string literals

This commit is contained in:
Andrzej Rybczak
2009-09-15 23:12:45 +00:00
parent 6e903f9fc8
commit 61a9d6a785
4 changed files with 18 additions and 13 deletions

View File

@@ -26,6 +26,11 @@
#include "window.h"
#include "song.h"
template <size_t N> inline size_t static_strlen(const char (&)[N])
{
return N-1;
}
void ToLower(std::string &);
int StrToInt(const std::string &);