Changeset 6176 for trunk/console
- Timestamp:
- 04/30/08 05:12:52 (7 months ago)
- Location:
- trunk/console/src
- Files:
-
- 6 modified
-
console.cpp (modified) (3 diffs)
-
console.h (modified) (1 diff)
-
console_menu.cpp (modified) (3 diffs)
-
console_print.cpp (modified) (5 diffs)
-
window.cpp (modified) (1 diff)
-
window.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/console/src/console.cpp
r4526 r6176 128 128 * CLicqConsole::Constructor 129 129 *-------------------------------------------------------------------------*/ 130 CLicqConsole::CLicqConsole(int argc, char **argv)130 CLicqConsole::CLicqConsole(int /* argc */, char** /* argv */) 131 131 { 132 132 CWindow::StartScreen(); … … 990 990 win->wprintf("%A%CSearch complete.\n", m_cColorInfo->nAttr, m_cColorInfo->nColor); 991 991 } 992 else if ( e->SearchAck()->More() == -1)992 else if (static_cast<long>(e->SearchAck()->More()) == -1) 993 993 { 994 994 win->wprintf("%A%CSearch complete. More users found, narrow search.\n", … … 2112 2112 * CLicqConsole::UserCommand_SetAutoResponse 2113 2113 *-------------------------------------------------------------------------*/ 2114 void CLicqConsole::UserCommand_SetAutoResponse(const char *szId, unsigned long nPPID, char *)2114 void CLicqConsole::UserCommand_SetAutoResponse(const char* /* szId */, unsigned long /* nPPID */, char *) 2115 2115 { 2116 2116 // First put this console into edit mode -
trunk/console/src/console.h
r4526 r6176 222 222 struct SCommand 223 223 { 224 c har *szName;224 const char* szName; 225 225 void (CLicqConsole::*fProcessCommand)(char *); 226 226 void (CLicqConsole::*fProcessTab)(char *, struct STabCompletion &); 227 c har *szHelp;228 c har *szDescription;227 const char* szHelp; 228 const char* szDescription; 229 229 }; 230 230 extern const unsigned short NUM_COMMANDS; -
trunk/console/src/console_menu.cpp
r4526 r6176 111 111 * Callback function for when SPACE is pressed on the cdkUserList 112 112 *-------------------------------------------------------------------------*/ 113 int CLicqConsole::MenuPopupWrapper(EObjectType cdktype, void *object, void *clientData, chtype key)113 int CLicqConsole::MenuPopupWrapper(EObjectType /* cdktype */, void* /* object */, void* clientData, chtype /* key */) 114 114 { 115 115 CLicqConsole *me = (CLicqConsole *)clientData; … … 178 178 * CLicqConsole::MenuList 179 179 *-------------------------------------------------------------------------*/ 180 void CLicqConsole::MenuList(char *_szArg)180 void CLicqConsole::MenuList(char* /* _szArg */) 181 181 { 182 182 int userSelected; … … 255 255 * CLicqConsole::MenuPlugins 256 256 *-------------------------------------------------------------------------*/ 257 void CLicqConsole::MenuPlugins(char *_szArg)257 void CLicqConsole::MenuPlugins(char* /* _szArg */) 258 258 { 259 259 PluginsList l; -
trunk/console/src/console_print.cpp
r4588 r6176 373 373 void CLicqConsole::PrintUsers() 374 374 { 375 c har *title = "<C></B/40>Contacts";376 c har *ulist[1024];375 const char* title = "<C></B/40>Contacts"; 376 const char* ulist[1024]; 377 377 int i = 0; 378 378 struct SScrollUser *s = NULL; … … 403 403 { 404 404 cdkUserList = newCDKScroll(winUsers->CDKScreen(), 0, 0, 405 RIGHT, LINES - 5, USER_WIN_WIDTH, title,406 ulist, i, FALSE, A_NORMAL, TRUE, TRUE);405 RIGHT, LINES - 5, USER_WIN_WIDTH, const_cast<char*>(title), 406 const_cast<char**>(ulist), i, FALSE, A_NORMAL, TRUE, TRUE); 407 407 } 408 408 else 409 409 { 410 setCDKScrollItems (cdkUserList, ulist, i, FALSE);410 setCDKScrollItems (cdkUserList, const_cast<char**>(ulist), i, FALSE); 411 411 } 412 412 … … 452 452 * CLicqConsole::UserListCallback 453 453 *-------------------------------------------------------------------------*/ 454 int CLicqConsole::UserListCallback(EObjectType cdktype, void *object, void *clientData, chtype input)454 int CLicqConsole::UserListCallback(EObjectType /* cdktype */, void* /* object */, void *clientData, chtype input) 455 455 { 456 456 CLicqConsole *me = (CLicqConsole *)clientData; … … 466 466 char title[256]; 467 467 snprintf(title, 256, "<C></B/40>%s", _szAlias); 468 c har *list[10000];468 const char* list[10000]; 469 469 int i = 0; 470 470 … … 474 474 cdkContactPopup = newCDKScroll(winMain->CDKScreen(), 0, 0, 475 475 RIGHT, 10, 20, title, 476 list, i, FALSE, A_REVERSE, TRUE, TRUE);477 478 setCDKScrollBackgroundColor(cdkContactPopup, "</40>");476 const_cast<char**>(list), i, FALSE, A_REVERSE, TRUE, TRUE); 477 478 setCDKScrollBackgroundColor(cdkContactPopup, const_cast<char*>("</40>")); 479 479 drawCDKScroll(cdkContactPopup, true); 480 480 winMain->RefreshWin(); -
trunk/console/src/window.cpp
r4526 r6176 169 169 } 170 170 171 void CWindow::wprintf(c har *formatIn, ...)171 void CWindow::wprintf(const char *formatIn, ...) 172 172 { 173 173 va_list argp; -
trunk/console/src/window.h
r4526 r6176 57 57 CWindow& operator<<(unsigned long d); 58 58 CWindow& operator<<(unsigned short d); 59 void wprintf(c har *formatIn, ...);59 void wprintf(const char *formatIn, ...); 60 60 WINDOW *Win() { return win; } 61 61 CDKSCREEN *CDKScreen() { return cdkscreen; }
