aboutsummaryrefslogtreecommitdiffstats
path: root/ApiExtractor
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2013-08-01 13:58:20 -0400
committerJohn Cummings <jcummings2@users.sf.net>2013-08-06 22:23:53 +0200
commita43c815a6fe38d60ded59776ba6e71d87a1eedc1 (patch)
treec84df97cce66e4923b88a8a7ae4cb69010fcddac /ApiExtractor
parent43857068b0706f4a473c5f0a8d8c545ccab89cd9 (diff)
Clean up style
Change wrapping and indent of some code in Handler::startElement to improve consistency. Change-Id: I13bae6bbb732e3c5791cf0079154feed8d8dcbd1 Reviewed-by: John Cummings <jcummings2@users.sf.net>
Diffstat (limited to 'ApiExtractor')
-rw-r--r--ApiExtractor/typesystem.cpp37
1 files changed, 19 insertions, 18 deletions
diff --git a/ApiExtractor/typesystem.cpp b/ApiExtractor/typesystem.cpp
index 71814d6c9..9a99ce5f5 100644
--- a/ApiExtractor/typesystem.cpp
+++ b/ApiExtractor/typesystem.cpp
@@ -660,26 +660,27 @@ bool Handler::startElement(const QString &, const QString &n,
type->setPreferredTargetLangType(preferred);
element->entry = type;
- }
- break;
- case StackElement::ContainerTypeEntry:
- {
- QString typeName = attributes["type"];
- ContainerTypeEntry::Type containerType =
- ContainerTypeEntry::containerTypeFromString(typeName);
- if (typeName.isEmpty()) {
- m_error = "no 'type' attribute specified";
- return false;
- } else if (containerType == ContainerTypeEntry::NoContainer) {
- m_error = "there is no container of type " + containerType;
- return false;
- }
+ }
+ break;
- ContainerTypeEntry *type = new ContainerTypeEntry(name, containerType, since);
- type->setCodeGeneration(m_generate);
- element->entry = type;
+ case StackElement::ContainerTypeEntry: {
+ QString typeName = attributes["type"];
+ ContainerTypeEntry::Type containerType =
+ ContainerTypeEntry::containerTypeFromString(typeName);
+ if (typeName.isEmpty()) {
+ m_error = "no 'type' attribute specified";
+ return false;
+ } else if (containerType == ContainerTypeEntry::NoContainer) {
+ m_error = "there is no container of type " + containerType;
+ return false;
}
- break;
+
+ ContainerTypeEntry *type = new ContainerTypeEntry(name, containerType, since);
+ type->setCodeGeneration(m_generate);
+ element->entry = type;
+ }
+ break;
+
case StackElement::EnumTypeEntry: {
QStringList names = name.split(QLatin1String("::"));
if (names.size() == 1)