aboutsummaryrefslogtreecommitdiff
path: root/c/episodelistview.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-20 02:30:50 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-20 02:30:50 +0200
commit79d4fa6d9a79295b747eedcc17b4de6ccdde7e37 (patch)
treee410ce9da4c00e6082625d2ed7e61a216f31f29d /c/episodelistview.cpp
parent3d56ea09228ac2989eb8b89c8b69909603d61c3e (diff)
downloadEpisodeBrowser-79d4fa6d9a79295b747eedcc17b4de6ccdde7e37.tar.gz
Fix ANSI compatibility.
It's not very useful, but it's a fun exercise.
Diffstat (limited to 'c/episodelistview.cpp')
-rw-r--r--c/episodelistview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/episodelistview.cpp b/c/episodelistview.cpp
index 6ed9146..5df33a1 100644
--- a/c/episodelistview.cpp
+++ b/c/episodelistview.cpp
@@ -17,17 +17,17 @@ EpisodeListView::EpisodeListView(const HWND hWndParent)
lvc.mask = LVCF_WIDTH|LVCF_TEXT|LVCF_SUBITEM;
lvc.iSubItem = ELVSIEPISODE;
- lvc.pszText = TEXT("#");
+ lvc.pszText = (TCHAR*)TEXT("#");
lvc.cx = Dpi(42);
ListView_InsertColumn(hWnd, ELVSIEPISODE, &lvc);
lvc.iSubItem = ELVSITITLE;
- lvc.pszText = TEXT("Title");
+ lvc.pszText = (TCHAR*)TEXT("Title");
lvc.cx = 500;
ListView_InsertColumn(hWnd, ELVSITITLE, &lvc);
lvc.iSubItem = ELVSIRATING;
- lvc.pszText = TEXT("/");
+ lvc.pszText = (TCHAR*)TEXT("/");
lvc.cx = Dpi(30);
ListView_InsertColumn(hWnd, ELVSIRATING, &lvc);
@@ -415,7 +415,7 @@ void EpisodeListView::UpdateItem(const LVITEM* const pLvi)
ListView_SetItemText(hWnd, pLvi->iItem, ELVSITITLE, tszName);
r: if (!Pl("episode_data","episode_rating",pLvi->lParam,&iRating)) {
- ListView_SetItemText(hWnd, pLvi->iItem, ELVSIRATING, TEXT(""));
+ ListView_SetItemText(hWnd, pLvi->iItem, ELVSIRATING, (TCHAR*)TEXT(""));
return;
}