Permalink
Browse files

cosmetic: concatenate variable deceleration and assignment

  • Loading branch information...
1 parent fb6c6f9 commit 0816049fed8ceea62dc5cdd97bbcfc4480924025 @malard malard committed Jun 13, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 xbmc/input/ButtonTranslator.cpp
@@ -865,9 +865,8 @@ void CButtonTranslator::MapWindowActions(TiXmlNode *pWindow, int windowID)
{
pDevice = pWindow->FirstChild(type);
TiXmlElement *pDeviceElement = pDevice->ToElement();
- CStdString deviceName;
//check if exists, if not use "default"
- deviceName = pDeviceElement->Attribute("name");
+ CStdString deviceName = pDeviceElement->Attribute("name");
if (deviceName.empty())
deviceName = "default";

0 comments on commit 0816049

Please sign in to comment.