diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-02-09 19:10:58 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-02-09 19:10:58 +0000 |
commit | e308ea7f77f93404fc7bc83d6158b5ea8832e4f4 (patch) | |
tree | 7df9236249cc5a8577dd09dda522822f5842c924 /cpp/src/slice2cppe/Gen.cpp | |
parent | Modified "cpp:include" format slightly (diff) | |
download | ice-e308ea7f77f93404fc7bc83d6158b5ea8832e4f4.tar.bz2 ice-e308ea7f77f93404fc7bc83d6158b5ea8832e4f4.tar.xz ice-e308ea7f77f93404fc7bc83d6158b5ea8832e4f4.zip |
cked out previous change
Diffstat (limited to 'cpp/src/slice2cppe/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cppe/Gen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2cppe/Gen.cpp b/cpp/src/slice2cppe/Gen.cpp index 374579d66b0..c471741344f 100644 --- a/cpp/src/slice2cppe/Gen.cpp +++ b/cpp/src/slice2cppe/Gen.cpp @@ -353,14 +353,14 @@ Slice::Gen::GlobalIncludeVisitor::visitModuleStart(const ModulePtr& p) assert(dc); StringList globalMetaData = dc->getMetaData(); - static const string includePrefix = "cpp:include "; + static const string includePrefix = "cpp:include:"; for(StringList::const_iterator q = globalMetaData.begin(); q != globalMetaData.end(); ++q) { string s = *q; if(s.find(includePrefix) == 0) { - H << nl << "#" << s.substr(strlen("cpp:")); + H << nl << "#include <" << s.substr(includePrefix.size()) << ">"; } } _finished = true; @@ -3014,7 +3014,7 @@ Slice::Gen::MetaDataVisitor::visitModuleStart(const ModulePtr& p) if(s.find(prefix) == 0) { string ss = s.substr(prefix.size()); - if(ss.find("include ") == 0) + if(ss.find("include:") == 0) { continue; } |