Skip to content
Snippets Groups Projects
Commit 3cee63bc authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Fix getting section names so there's no empty string padding.

parent faad806b
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ size_t WcclFileOpSections<T>::size() const ...@@ -116,7 +116,7 @@ size_t WcclFileOpSections<T>::size() const
template<class T> inline template<class T> inline
std::vector<std::string> WcclFileOpSections<T>::section_names() const std::vector<std::string> WcclFileOpSections<T>::section_names() const
{ {
std::vector<std::string> v(size()); std::vector<std::string> v;
foreach(const ptr_t& section, sections_) { foreach(const ptr_t& section, sections_) {
v.push_back(section->name()); v.push_back(section->name());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment