From 8e7ce9d430b439995ceddca2c4fb9e24ed323d3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 30 Jul 2022 00:23:51 +0200 Subject: Add non-throwing variants of Query methods. Pl has also been refactored, so that the unnecessary throw and catch have been removed. --- c/datalistview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/datalistview.cpp') diff --git a/c/datalistview.cpp b/c/datalistview.cpp index fd37791..ea68f2d 100644 --- a/c/datalistview.cpp +++ b/c/datalistview.cpp @@ -53,7 +53,7 @@ void DataListView::ShowEpisode(const int iEpisode) LVITEM lviKey = {LVIF_TEXT}; LVITEM lviValue = {LVIF_TEXT}; - for (int i = 0; q.NextSolution(); i++) { + for (int i = 0; q.NextSolution(std::nothrow); i++) { std::wstring wsKey; std::wstring wsValue; -- cgit v1.2.3