Remove slash from namespace
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 16 Jan 2020 04:53:45 +0000 (13:53 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 29 Jan 2020 02:16:44 +0000 (11:16 +0900)
Currently, if the output string has slash, the namespace has slash('/').
This patch fixes it.

Change-Id: I7e57347a18dfabd8a109359193b811190549a65f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
idlc/gen/generator.cc

index 19bcc0bcdbe08517852d75bd2b847376428de138..2f04cf09aeed82cbf689fd3413357652bdf92239 100644 (file)
@@ -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);
 }