Skip to content

Commit

Permalink
ticket:4218 Don't convert modifiers to string.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Jan 18, 2017
1 parent eac1e77 commit 0ee4ed0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions OMEdit/OMEditGUI/OMC/OMCProxy.cpp
Expand Up @@ -952,10 +952,6 @@ QString OMCProxy::getComponentModifierValue(QString className, QString name)
*/
bool OMCProxy::setComponentModifierValue(QString className, QString modifierName, QString modifierValue)
{
modifierValue = StringHandler::removeFirstLastQuotes(modifierValue);
if (StringHandler::containsSpace(modifierValue)) {
modifierValue = QString("\"%1\"").arg(modifierValue);
}
QString expression;
if (modifierValue.isEmpty()) {
expression = QString("setComponentModifierValue(%1, %2, $Code(()))").arg(className).arg(modifierName);
Expand Down Expand Up @@ -1020,10 +1016,6 @@ QString OMCProxy::getExtendsModifierValue(QString className, QString extendsClas

bool OMCProxy::setExtendsModifierValue(QString className, QString extendsClassName, QString modifierName, QString modifierValue)
{
modifierValue = StringHandler::removeFirstLastQuotes(modifierValue);
if (StringHandler::containsSpace(modifierValue)) {
modifierValue = QString("\"%1\"").arg(modifierValue);
}
QString expression;
if (modifierValue.isEmpty()) {
expression = QString("setExtendsModifierValue(%1, %2, %3, $Code(()))").arg(className).arg(extendsClassName).arg(modifierName);
Expand Down

0 comments on commit 0ee4ed0

Please sign in to comment.