aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavilla <davilla@svn>2010-05-24 06:02:29 +0000
committerdavilla <davilla@svn>2010-05-24 06:02:29 +0000
commitfb93609f5e319d75d0a49466af3b621552611b32 (patch)
treeeb2e76d2b244663c82c01731a6271f1f304537c1
parent67b06b99ae69b529df4ab13cf67a3ebed97544e8 (diff)
fixed, compiler error: operands to ?: have different types
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30515 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r--xbmc/addons/Addon.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/xbmc/addons/Addon.cpp b/xbmc/addons/Addon.cpp
index f006f21306..0f56a85128 100644
--- a/xbmc/addons/Addon.cpp
+++ b/xbmc/addons/Addon.cpp
@@ -96,7 +96,10 @@ const CStdString TranslateContent(const CONTENT_TYPE &type, bool pretty/*=false*
{
const ContentMapping &map = content[index];
if (type == map.type)
- return (pretty && map.pretty) ? g_localizeStrings.Get(map.pretty) : map.name;
+ if (pretty && map.pretty)
+ return g_localizeStrings.Get(map.pretty);
+ else
+ return map.name;
}
return "";
}
@@ -118,7 +121,10 @@ const CStdString TranslateType(const ADDON::TYPE &type, bool pretty/*=false*/)
{
const TypeMapping &map = types[index];
if (type == map.type)
- return (pretty && map.pretty) ? g_localizeStrings.Get(map.pretty) : map.name;
+ if (pretty && map.pretty)
+ return g_localizeStrings.Get(map.pretty);
+ else
+ return map.name;
}
return "";
}