summaryrefslogtreecommitdiff
path: root/plugins/QuickSearch
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/QuickSearch')
-rw-r--r--plugins/QuickSearch/src/options.cpp3
-rw-r--r--plugins/QuickSearch/src/utils.cpp2
-rw-r--r--plugins/QuickSearch/src/version.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/plugins/QuickSearch/src/options.cpp b/plugins/QuickSearch/src/options.cpp
index eb9ad28ec4..e2d42a6061 100644
--- a/plugins/QuickSearch/src/options.cpp
+++ b/plugins/QuickSearch/src/options.cpp
@@ -263,7 +263,8 @@ public:
cmbOther.SetCurSel(0);
for (int i = CNF_FIRSTNAME; i < CNF_MAX; i++)
- cmbCnfType.AddString(cnf2str(i), i);
+ if (auto *pwszText = cnf2str(i))
+ cmbCnfType.AddString(pwszText, i);
cmbCnfType.SetCurSel(0);
chkDrawGrid.SetState((g_plugin.m_flags & QSO_DRAWGRID) != 0);
diff --git a/plugins/QuickSearch/src/utils.cpp b/plugins/QuickSearch/src/utils.cpp
index a1eda87eae..930329c3ee 100644
--- a/plugins/QuickSearch/src/utils.cpp
+++ b/plugins/QuickSearch/src/utils.cpp
@@ -494,7 +494,7 @@ const wchar_t* cnf2str(int cnf)
case CNF_COHOMEPAGE: return TranslateT("Company homepage");
case CNF_DISPLAYUID: return TranslateT("Display ID");
}
- return L"";
+ return nullptr;
}
/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/plugins/QuickSearch/src/version.h b/plugins/QuickSearch/src/version.h
index c33e010d53..1aede2783a 100644
--- a/plugins/QuickSearch/src/version.h
+++ b/plugins/QuickSearch/src/version.h
@@ -1,7 +1,7 @@
#define __MAJOR_VERSION 1
#define __MINOR_VERSION 5
#define __RELEASE_NUM 0
-#define __BUILD_NUM 2
+#define __BUILD_NUM 3
#include <stdver.h>