diff options
Diffstat (limited to 'c/datalistview.cpp')
-rw-r--r-- | c/datalistview.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/datalistview.cpp b/c/datalistview.cpp index ecaa76f..cdc6dfb 100644 --- a/c/datalistview.cpp +++ b/c/datalistview.cpp @@ -64,20 +64,20 @@ void DataListView::ShowEpisode(const int iEpisode) LVITEM lviValue = {LVIF_TEXT}; for (int i = 0; q.NextSolution(std::nothrow); i++) { - wstring_owner key; - wstring_owner value; + wchar_ptr key; + wchar_ptr value; if (!(PlGet(t+1, &key) && PlGet(t+2, &value))) continue; lviKey.iItem = i; lviKey.iSubItem = 0; - lviKey.pszText = key.p; + lviKey.pszText = key; ListView_InsertItem(hWnd, &lviKey); lviValue.iItem = i; lviValue.iSubItem = 1; - lviValue.pszText = value.p; + lviValue.pszText = value; ListView_SetItem(hWnd, &lviValue); } |