[glom] Remove unnecessary c_str() calls.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Remove unnecessary c_str() calls.
- Date: Tue, 1 Sep 2015 12:13:26 +0000 (UTC)
commit 77d9875e8c30eeaf7bc135896f8c0d424a3eef54
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Sep 1 12:57:44 2015 +0200
Remove unnecessary c_str() calls.
glom/import_csv/dialog_import_csv.cc | 2 +-
tests/import/test_signals.cc | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/glom/import_csv/dialog_import_csv.cc b/glom/import_csv/dialog_import_csv.cc
index f90a8ce..3440770 100644
--- a/glom/import_csv/dialog_import_csv.cc
+++ b/glom/import_csv/dialog_import_csv.cc
@@ -437,7 +437,7 @@ void Dialog_Import_CSV::begin_parse()
m_sample_view->set_model(m_sample_model); // Empty model
m_parser->clear();
- m_parser->set_encoding(get_current_encoding().c_str());
+ m_parser->set_encoding(get_current_encoding());
// Allow the Import button to be pressed when a field for the primary key
// field is set. When the import button is pressed without the file being
diff --git a/tests/import/test_signals.cc b/tests/import/test_signals.cc
index bf83f22..d56652c 100644
--- a/tests/import/test_signals.cc
+++ b/tests/import/test_signals.cc
@@ -125,7 +125,7 @@ int main()
std::cout << exception.what() << std::endl;
}
- parser.set_encoding((*iter).c_str());
+ parser.set_encoding((*iter));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]