mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 04:21:13 +00:00
Remove unused variables (#5382)
- Fix GenerateTextFromTable (aliasing typo) - Fix unused variable in idl_gen_dart.cpp - Fix std::string passing (should be non-const value or const-reference) - Remove unused variables
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
7d7d796cd0
commit
7a63792929
@@ -520,7 +520,7 @@ class CppGenerator : public BaseGenerator {
|
||||
static std::string TranslateNameSpace(const std::string &qualified_name) {
|
||||
std::string cpp_qualified_name = qualified_name;
|
||||
size_t start_pos = 0;
|
||||
while ((start_pos = cpp_qualified_name.find(".", start_pos)) !=
|
||||
while ((start_pos = cpp_qualified_name.find('.', start_pos)) !=
|
||||
std::string::npos) {
|
||||
cpp_qualified_name.replace(start_pos, 1, "::");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user