Skip to content
Snippets Groups Projects
Commit ebc8e66a authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Re-enable plain-c++ test.

parent ced7e3a0
No related branches found
No related tags found
No related merge requests found
......@@ -17,12 +17,10 @@ win {
unix {
# Uses popen
SUBDIRS += \
plain-cplusplus \
# Profile library paths issues
process \
ssh
}
# Not compiling, popen + missing includes
# SUBDIRS += plain-cplusplus
subdir_proparser.file=proparser/testreader.pro
......@@ -33,6 +33,7 @@
#include <iosfwd>
#include <vector>
#include <map>
#include <cstring>
namespace CPlusPlus {
......@@ -55,7 +56,7 @@ public:
: _text(text), _size(size) {}
StringRef(const char *text)
: _text(text), _size(strlen(text)) {}
: _text(text), _size(std::strlen(text)) {}
inline const char *text() const { return _text; }
inline unsigned size() const { return _size; }
......@@ -66,7 +67,7 @@ public:
bool operator == (const StringRef &other) const
{
if (_size == other._size)
return _text == other._text || ! strncmp(_text, other._text, _size);
return _text == other._text || ! std::strncmp(_text, other._text, _size);
return false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment