Skip to content

Commit 3704669

Browse files
committed
Fix for one of previous commit fixing tests
The parameter of th eintroduced addOptions2url function has to be const, otherwise it won't build the way this function is called by tests
1 parent 339beb3 commit 3704669

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/unit/unit_fixture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ bool unit_fixture::setVariableValue(const sql::SQLString& name, const sql::SQLSt
512512
return false;
513513
}
514514

515-
String unit_fixture::addOptions2url(String& add)
515+
String unit_fixture::addOptions2url(const String& add)
516516
{
517517
String localUrl;
518518
localUrl.reserve(url.length() + 1 + add.length());

test/unit/unit_fixture.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ class unit_fixture : public TestSuite
363363
bool setVariableValue(const sql::SQLString& name, const sql::SQLString& value, bool global= false);
364364

365365
/* Adds given options to the base Url on which the tests are run */
366-
String addOptions2url(String& add);
366+
String addOptions2url(const String& add);
367367

368368
public:
369369

0 commit comments

Comments
 (0)