Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
dbd014d0
Commit
dbd014d0
authored
Apr 04, 2014
by
Marcin Siodelski
Browse files
[master] Pass string instead of c-string in CSVFile class constructor.
This fixes a performance issue reported by cppcheck.
parent
0c0f4c9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/util/csv_file.cc
View file @
dbd014d0
...
...
@@ -29,7 +29,7 @@ CSVRow::CSVRow(const size_t cols, const char separator)
CSVRow
::
CSVRow
(
const
std
::
string
&
text
,
const
char
separator
)
:
separator_
(
1
,
separator
)
{
// Parsing is exception safe, so this will not throw.
parse
(
text
.
c_str
()
);
parse
(
text
);
}
void
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment