summaryrefslogtreecommitdiffstats
path: root/tests/testparse.cpp
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2017-05-07 09:41:27 +0300
committerGravatar Miika Turkia <miika.turkia@gmail.com>2017-05-07 09:41:27 +0300
commitab1813a4454cbe639e99eaee7cd1115bfed1cf8f (patch)
tree68dce25edb02c9539887ef0ce544da8ca5fa315e /tests/testparse.cpp
parent0d36b6e4e8305699f35ee57ceae5a2a00f429195 (diff)
downloadsubsurface-ab1813a4454cbe639e99eaee7cd1115bfed1cf8f.tar.gz
Move intdup to qthelper
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Diffstat (limited to 'tests/testparse.cpp')
-rw-r--r--tests/testparse.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/testparse.cpp b/tests/testparse.cpp
index 7195af75a..cb98e051f 100644
--- a/tests/testparse.cpp
+++ b/tests/testparse.cpp
@@ -4,6 +4,7 @@
#include "core/file.h"
#include "core/divelist.h"
#include <QTextStream>
+#include "core/qthelper.h"
/* We have to use a macro since QCOMPARE
* can only be called from a test method
@@ -42,15 +43,6 @@ void TestParse::cleanup()
sqlite3_close(_sqlite3_handle);
}
-char *intdup(int index)
-{
- char tmpbuf[21];
-
- snprintf(tmpbuf, sizeof(tmpbuf) - 2, "%d", index);
- tmpbuf[20] = 0;
- return strdup(tmpbuf);
-}
-
int TestParse::parseCSV(int units, std::string file)
{
// some basic file parsing tests