summaryrefslogtreecommitdiff
path: root/cpp/rubygen/cppgen.rb
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-10-14 19:38:40 +0000
committerAlan Conway <aconway@apache.org>2010-10-14 19:38:40 +0000
commit23204010207ad7db58500b6547b92b7f91d2df53 (patch)
treeffa680168fd8d4c04a3b3bcad0472d1a920985b7 /cpp/rubygen/cppgen.rb
parent0be15c353c4cdc2612757fa4c877e5bb42e0228d (diff)
downloadqpid-python-23204010207ad7db58500b6547b92b7f91d2df53.tar.gz
Code cleanup in broker directory.
- Removed un-necessary #includes for broker/Queue.h - Removed "using std::string" in header files. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1022679 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/cppgen.rb')
-rwxr-xr-xcpp/rubygen/cppgen.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/rubygen/cppgen.rb b/cpp/rubygen/cppgen.rb
index 7818e1c4b0..f0995105f1 100755
--- a/cpp/rubygen/cppgen.rb
+++ b/cpp/rubygen/cppgen.rb
@@ -51,7 +51,7 @@ CppKeywords = Set.new(["and", "and_eq", "asm", "auto", "bitand",
"void", "volatile", "wchar_t", "while", "xor",
"xor_eq"])
# Names that need a trailing "_" to avoid clashes.
-CppMangle = CppKeywords+Set.new(["string"])
+CppMangle = CppKeywords+Set.new(["std::string"])
class String
def cppsafe() CppMangle.include?(self) ? self+"_" : self; end
@@ -124,17 +124,17 @@ class AmqpRoot
"uint32"=>CppType.new("uint32_t").code("Long").defval("0"),
"uint64"=>CppType.new("uint64_t").code("LongLong").defval("0"),
"datetime"=>CppType.new("uint64_t").code("LongLong").defval("0"),
- "str8"=>CppType.new("string").passcref.retcref.code("ShortString"),
- "str16"=>CppType.new("string").passcref.retcref.code("MediumString"),
- "str32"=>CppType.new("string").passcref.retcref.code("LongString"),
- "vbin8"=>CppType.new("string").passcref.retcref.code("ShortString"),
- "vbin16"=>CppType.new("string").passcref.retcref.code("MediumString"),
- "vbin32"=>CppType.new("string").passcref.retcref.code("LongString"),
+ "str8"=>CppType.new("std::string").passcref.retcref.code("ShortString"),
+ "str16"=>CppType.new("std::string").passcref.retcref.code("MediumString"),
+ "str32"=>CppType.new("std::string").passcref.retcref.code("LongString"),
+ "vbin8"=>CppType.new("std::string").passcref.retcref.code("ShortString"),
+ "vbin16"=>CppType.new("std::string").passcref.retcref.code("MediumString"),
+ "vbin32"=>CppType.new("std::string").passcref.retcref.code("LongString"),
"map"=>CppType.new("FieldTable").passcref.retcref,
"array"=>CppType.new("Array").passcref.retcref,
"sequence-no"=>CppType.new("SequenceNumber").passcref,
"sequence-set"=>CppType.new("SequenceSet").passcref.retcref,
- "struct32"=>CppType.new("string").passcref.retcref.code("LongString"),
+ "struct32"=>CppType.new("std::string").passcref.retcref.code("LongString"),
"uuid"=>CppType.new("Uuid").passcref.retcref,
"byte-ranges"=>CppType.new("ByteRanges").passcref.retcref
}