summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <[email protected]>2015-06-21 12:28:01 +0200
committerRalf Habacker <[email protected]>2015-06-21 12:28:58 +0200
commit61083fe3fd4a178684193cc45238f316ba9a08fb (patch)
tree0db549a70209d5264caa3a096c420a03f3c00575
parenteb4a0585fe942f3a3882694e05499d229fe3aa0b (diff)
Coverige check CID 71451: Big parameter passed by value (PASS_BY_VALUE)
Passing parameter optionState of type Settings::OptionState (size 504 bytes) by value.
-rw-r--r--umbrello/umldoc.cpp2
-rw-r--r--umbrello/umldoc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/umbrello/umldoc.cpp b/umbrello/umldoc.cpp
index 5b9aadd..ac0c26c 100644
--- a/umbrello/umldoc.cpp
+++ b/umbrello/umldoc.cpp
@@ -2933,7 +2933,7 @@ void UMLDoc::activateAllViews()
* Sets the default settings to the given settings.
* @param optionState settings
*/
-void UMLDoc::settingsChanged(Settings::OptionState optionState)
+void UMLDoc::settingsChanged(Settings::OptionState &optionState)
{
for (int i = 0; i < Uml::ModelType::N_MODELTYPES; ++i) {
m_root[i]->setViewOptions(optionState);
diff --git a/umbrello/umldoc.h b/umbrello/umldoc.h
index e5ea9f2..16ccae2 100644
--- a/umbrello/umldoc.h
+++ b/umbrello/umldoc.h
@@ -194,7 +194,7 @@ public:
void setDocumentation(const QString &doc);
QString documentation() const;
- void settingsChanged(Settings::OptionState optionState);
+ void settingsChanged(Settings::OptionState &optionState);
QString uniqueViewName(const Uml::DiagramType::Enum type);