From 6de586a07a4705422a5aa44ebbf4d81cd0d94f3b Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Thu, 16 Jan 2020 13:53:45 +0900 Subject: [PATCH] Remove slash from namespace Currently, if the output string has slash, the namespace has slash('/'). This patch fixes it. Change-Id: I7e57347a18dfabd8a109359193b811190549a65f Signed-off-by: Hwankyu Jhun --- idlc/gen/generator.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/idlc/gen/generator.cc b/idlc/gen/generator.cc index 19bcc0b..2f04cf0 100644 --- a/idlc/gen/generator.cc +++ b/idlc/gen/generator.cc @@ -68,6 +68,8 @@ std::string Generator::GetFileNamespace() const { p2 = 0; if (p1 == std::string::npos) p1 = 0; + else + p1++; return FileName.substr(p1, p2 - p1); } -- 2.7.4