Commit ebc8e66a authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Re-enable plain-c++ test.

parent ced7e3a0
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment