Clang-tidy readability-redundant-string-cstr warnings

Hi, Matthias!

I run Clang-tidy (version 9) readability-redundant-string-cstr check over KLayout code. Duplicated places are omitted:

src/tl/tl/tlException.h:155:18: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/tl/tl/tlXMLParser.h:50:18: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/tl/tl/tlXMLParser.h:57:18: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/tl/tl/tlXMLParser.h:74:18: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/tl/tl/tlXMLParser.h:86:14: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/tl/tl/tlXMLParser.h:88:14: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/db/db/dbTestSupport.cc:74:30: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/db/db/dbText.h:342:26: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/edt/edt/edtInstPropertiesPage.cc:349:26: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/edt/edt/edtMainService.cc:1988:28: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/edt/edt/edtMainService.cc:1992:28: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/edt/edt/edtMainService.cc:1999:28: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/edt/edt/edtMainService.cc:2005:30: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/edt/edt/edtPropertiesPageUtils.cc:572:26: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/laybasic/laybasic/gtf.cc:1913:34: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/laybasic/laybasic/layDialogs.cc:660:89: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/laybasic/laybasic/layDialogs.cc:678:93: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/laybasic/laybasic/layLayerProperties.cc:1689:24: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/lay/lay/layMacroController.cc:318:30: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/lay/lay/layMainWindow.cc:3544:82: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/pya/pya/pyaModule.cc:2390:35: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/pya/pya/pyaModule.cc:2446:35: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/pya/unit_tests/pya.cc:69:53: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/pya/unit_tests/pya.cc:88:53: warning: redundant call to 'c_str' [readability-redundant-string-cstr]\call to 'c_str' [readability-redundant-string-cstr]
src/tl/tl/tlString.cc:1361:25: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/tl/tl/tlString.cc:217:23: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/tl/tl/tlString.cc:222:23: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/tl/unit_tests/tlXMLParser.cc:251:24: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/tl/unit_tests/tlXMLParser.cc:307:24: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/tl/unit_tests/tlXMLParser.cc:363:24: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/tl/unit_tests/tlXMLParser.cc:437:24: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/db/db/dbText.h:342:26: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/plugins/streamers/gds2/db_plugin/contrib/dbGDS2TextReader.h:43:37: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/plugins/streamers/oasis/db_plugin/dbOASISReader.cc:1632:12: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
src/plugins/streamers/oasis/db_plugin/dbOASISReader.cc:537:53: warning: redundant call to 'c_str' [readability-redundant-string-cstr]
Sign In or Register to comment.