mirror of
https://github.com/allankoechke/soci.git
synced 2026-11-30 10:58:24 +00:00
Use std::ostringstream for a write-only stream
Just small clean up: don't use stringstream when we really need just an ostringstream.
This commit is contained in:
@@ -596,7 +596,7 @@ void statement_impl::do_add_query_parameters()
|
||||
for (std::size_t i = 0; i != usize; ++i)
|
||||
{
|
||||
std::string name = get_name(*uses_[i], i, backEnd_);
|
||||
std::stringstream value;
|
||||
std::ostringstream value;
|
||||
uses_[i]->dump_value(value, backEnd_->get_row_to_dump());
|
||||
session_.add_query_parameter(std::move(name), value.str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user