Browse Source

Merge pull request #78 from jhasse/redundant-string-cstr

Remove redundant c_str() call found by clang-tidy
Michael R. P. Ragazzon 6 years ago
parent
commit
3e0bcde41b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Controls/DataSourceListener.cpp

+ 1 - 1
Source/Controls/DataSourceListener.cpp

@@ -95,7 +95,7 @@ bool DataSourceListener::ParseDataSource(DataSource*& data_source, Rml::Core::St
 	Rml::Core::StringList data_source_parts;
 	Rml::Core::StringUtilities::ExpandString(data_source_parts, data_source_name, '.');
 
-	DataSource* new_data_source = DataSource::GetDataSource(data_source_parts[0].c_str());
+	DataSource* new_data_source = DataSource::GetDataSource(data_source_parts[0]);
 
 	if (data_source_parts.size() != 2 || !new_data_source)
 	{