Skip to content

Commit

Permalink
Coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
shundhammer committed Oct 15, 2020
1 parent 15e022c commit 00b61d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/YCP_UI.cc
Original file line number Diff line number Diff line change
Expand Up @@ -681,16 +681,16 @@ YCPValue YCP_UI::ChangeWidget( const YCPValue & idValue, const YCPValue & proper
idValue->toString().c_str() ) );
}

YCPValue id = YCPDialogParser::parseIdTerm( idValue );
YWidget * widget = YCPDialogParser::findWidgetWithId( id,
true ); // throw if not found
YCPValue id = YCPDialogParser::parseIdTerm( idValue );
YWidget * widget = YCPDialogParser::findWidgetWithId( id,
true ); // throw if not found

YPropertySet propSet = widget->propertySet();

if ( property->isSymbol() )
{
string oldShortcutString = widget->shortcutString();
string propertyName = property->asSymbol()->symbol();
string propertyName = property->asSymbol()->symbol();

YPropertyValue val;

Expand All @@ -715,8 +715,8 @@ YCPValue YCP_UI::ChangeWidget( const YCPValue & idValue, const YCPValue & proper
}
else if ( property->isTerm() )
{
bool success = YCPPropertyHandler::setComplexProperty( widget, property->asTerm(), newValue );
ret = YCPBoolean( success );
bool success = YCPPropertyHandler::setComplexProperty( widget, property->asTerm(), newValue );
ret = YCPBoolean( success );
}
else
{
Expand Down

0 comments on commit 00b61d7

Please sign in to comment.