Skip to content

Commit b8884d2

Browse files
committed
updated oatpp api
1 parent e645f24 commit b8884d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main/src/db/Database.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ Database::Database(const oatpp::String& dbHost,
4444
const oatpp::String& dbName)
4545
: m_connection(nullptr)
4646
{
47-
auto stream = oatpp::data::stream::ChunkedBuffer::createShared();
47+
oatpp::data::stream::ChunkedBuffer stream;
4848
stream << "host=" << dbHost << " user=" << dbUser << " password=" << dbPassword << " dbname=" << dbName;
49-
m_connectionString = stream->toString();
49+
m_connectionString = stream.toString();
5050
}
5151

5252
Database::~Database() {

0 commit comments

Comments
 (0)