summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2020-01-16 04:53:45 (GMT)
committerHwankyu Jhun <h.jhun@samsung.com>2020-01-16 04:53:45 (GMT)
commit6de586a07a4705422a5aa44ebbf4d81cd0d94f3b (patch)
tree4900e21871c343afeea0c803167ed762f46cb155
parent1378d7f4d488bd271019dd58d542e6b705e7c5a7 (diff)
downloadtidl-6de586a07a4705422a5aa44ebbf4d81cd0d94f3b.zip
tidl-6de586a07a4705422a5aa44ebbf4d81cd0d94f3b.tar.gz
tidl-6de586a07a4705422a5aa44ebbf4d81cd0d94f3b.tar.bz2
Remove slash from namespacerefs/changes/53/222553/1
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>
-rw-r--r--idlc/gen/generator.cc2
1 files changed, 2 insertions, 0 deletions
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);
}