diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-10 12:17:00 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-02-10 12:17:00 +0000 |
commit | ae7b868697227abf55c668e796a8f030571aebdb (patch) | |
tree | c92ddd9885ca73460c119b6fab500b3c0022ba83 /project2/sql/sqlTest.cpp | |
parent | Remove boost::filesystem in favour of std::filesystem (diff) | |
download | project2-ae7b868697227abf55c668e796a8f030571aebdb.tar.bz2 project2-ae7b868697227abf55c668e796a8f030571aebdb.tar.xz project2-ae7b868697227abf55c668e796a8f030571aebdb.zip |
Switch to string_view for libdbpp compat
Diffstat (limited to 'project2/sql/sqlTest.cpp')
-rw-r--r-- | project2/sql/sqlTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/project2/sql/sqlTest.cpp b/project2/sql/sqlTest.cpp index 1bb6678..1eac20e 100644 --- a/project2/sql/sqlTest.cpp +++ b/project2/sql/sqlTest.cpp @@ -37,8 +37,8 @@ class HandleDoCompare : public DB::HandleField { void null() { throw CantCompareNulls(); } - void string(const char *c , size_t l) { - doTest(Glib::ustring(c, c + l)); + void string(const std::string_view s) { + doTest(Glib::ustring(s.begin(), s.end())); } void integer(int64_t val) { doTest(val); |