Commit 61083fe3 authored by Ralf Habacker's avatar Ralf Habacker

Coverige check CID 71451: Big parameter passed by value (PASS_BY_VALUE)

Passing parameter optionState of type Settings::OptionState (size 504 bytes) by value.
parent eb4a0585
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment