aboutsummaryrefslogtreecommitdiff
path: root/c/datalistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/datalistview.cpp')
-rw-r--r--c/datalistview.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/c/datalistview.cpp b/c/datalistview.cpp
index 02a399f..dd59250 100644
--- a/c/datalistview.cpp
+++ b/c/datalistview.cpp
@@ -40,34 +40,34 @@ void DataListView::ResizeColumns(int w)
void DataListView::ShowEpisode(const int iEpisode)
{
- extern EpisodeListView* const g_pElv;
+ extern EpisodeListView* const g_elv;
ListView_DeleteAllItems(hWnd);
Frame f;
- const int iArity = 3;
- const term_t t = PL_new_term_refs(iArity);
+ const int arity = 3;
+ const term_t t = PL_new_term_refs(arity);
if (!PlPut(t, iEpisode)) return;
- Query q (NULL, PL_predicate("episode_datum", iArity, "episode_data"), t);
+ Query q (NULL, PL_predicate("episode_datum", arity, "episode_data"), t);
LVITEM lviKey = {LVIF_TEXT};
LVITEM lviValue = {LVIF_TEXT};
for (int i = 0; q.NextSolution(std::nothrow); i++) {
- wstring_owner wsoKey;
- wstring_owner wsoValue;
+ wstring_owner key;
+ wstring_owner value;
- if (!(PlGet(t+1, &wsoKey) && PlGet(t+2, &wsoValue)))
+ if (!(PlGet(t+1, &key) && PlGet(t+2, &value)))
continue;
lviKey.iItem = i;
lviKey.iSubItem = 0;
- lviKey.pszText = wsoKey.p;
+ lviKey.pszText = key.p;
ListView_InsertItem(hWnd, &lviKey);
lviValue.iItem = i;
lviValue.iSubItem = 1;
- lviValue.pszText = wsoValue.p;
+ lviValue.pszText = value.p;
ListView_SetItem(hWnd, &lviValue);
}
@@ -76,7 +76,7 @@ void DataListView::ShowEpisode(const int iEpisode)
LVFINDINFO lvfi;
lvfi.flags = LVFI_PARAM;
lvfi.lParam = iEpisode;
- int iItem = ListView_FindItem(g_pElv->hWnd, -1, &lvfi);
+ int iItem = ListView_FindItem(g_elv->hWnd, -1, &lvfi);
if (iItem != -1)
- ListView_EnsureVisible(g_pElv->hWnd, iItem, TRUE);
+ ListView_EnsureVisible(g_elv->hWnd, iItem, TRUE);
}