[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Thu Nov 17 15:51:35 CET 2005
SVN commit 481025 by staikos:
no need to check isEmpty() twice
M +4 -6 kstfitdialog_i.cpp
--- trunk/extragear/graphics/kst/kst/kstfitdialog_i.cpp #481024:481025
@@ -158,12 +158,10 @@
int i = 0;
QString strParamName;
for (strParamName = plugin->plugin()->parameterName(0); !strParamName.isEmpty(); strParamName = plugin->plugin()->parameterName(++i)) {
- if (!strParamName.isEmpty()) {
- if (plugin->outputScalars().contains(strParamName)) {
- KstScalarPtr scalar = plugin->outputScalars()[strParamName];
- if (scalar) {
- strLabel += i18n("parametername: [scalarname]\\n", "%1: [%2]\\n").arg(strParamName).arg(scalar->tagName());
- }
+ if (plugin->outputScalars().contains(strParamName)) {
+ KstScalarPtr scalar = plugin->outputScalars()[strParamName];
+ if (scalar) {
+ strLabel += i18n("parametername: [scalarname]\\n", "%1: [%2]\\n").arg(strParamName).arg(scalar->tagName());
}
}
}
More information about the Kst
mailing list