Merge branch 'master' of ssh://drop.maemo.org/git/mdictionary
[mdictionary] / trunk / src / plugins / google / src / TranslationGoogle.cpp
index 01528d6..c2cdc1e 100644 (file)
@@ -55,15 +55,14 @@ QString TranslationGoogle::toHtml() const {
         result+="bookmark=\"true\" >";
     else
         result+="bookmark=\"false\" >";
+
     if(_trans!="")
         return result+=_dictionaryInfo+ "</info>"+_trans +"</dict>";
 
     QList<Translation*> translations=googlePlugin->searchWordList(_key);
-    if(translations.size()>0 && translations.at(0)) {
-        QString res =  translations.at(0)->toHtml();
-        return res;
-   }
-   return "";
+    if(translations.size()>0 && translations.at(0))
+        return translations.at(0)->toHtml();
+    return "";
 
 }