src: Fixed clang errors and warnings

This commit is contained in:
Eberhard Graether
2017-11-24 00:55:29 +01:00
parent 1a9d2b8eab
commit e4f30555e6
8 changed files with 74 additions and 66 deletions
+11 -9
View File
@@ -156,8 +156,10 @@ size_t GraphViewStyle::getFontSizeForStyleType(NodeType::StyleType type)
case NodeType::STYLE_PACKAGE:
case NodeType::STYLE_SMALL_NODE:
return s_fontSize - 3;
default:
return s_fontSize;
}
return s_fontSize;
}
size_t GraphViewStyle::getFontSizeOfAccessNode()
@@ -336,8 +338,8 @@ GraphViewStyle::NodeStyle GraphViewStyle::getStyleForNodeType(
}
GraphViewStyle::NodeStyle GraphViewStyle::getStyleForNodeType(
NodeType::StyleType type, const std::string& underscoredTypeString,
const FilePath& iconPath, bool defined, bool isActive, bool isFocused,
NodeType::StyleType type, const std::string& underscoredTypeString,
const FilePath& iconPath, bool defined, bool isActive, bool isFocused,
bool hasChildren, bool hasQualifier
){
NodeStyle style;
@@ -483,12 +485,12 @@ GraphViewStyle::NodeStyle GraphViewStyle::getStyleOfBundleNode(bool isFocused)
{
return getStyleForNodeType(
NodeType::STYLE_BIG_NODE,
"bundle",
ResourcePaths::getGuiPath().concat(FilePath("graph_view/images/bundle.png")),
true,
false,
isFocused,
false,
"bundle",
ResourcePaths::getGuiPath().concat(FilePath("graph_view/images/bundle.png")),
true,
false,
isFocused,
false,
false
);
}