[mythtv] [patch] compiler warning in libmyth/uiphoneentry.cpp

Jim Westfall jwestfall at surrealistic.net
Sat Feb 5 00:03:40 UTC 2005


This is the warning.
uiphoneentry.cpp: In constructor `UIPhoneEntry::UIPhoneEntry(MythMainWindow*, MythDialog*, const char*)':
uiphoneentry.cpp:19: warning: passing negative value `-0x00000000000000001' for converting 1 of `QString& QString::operator=(char)'

Attempting to set a QString to -1, but the QString class doesnt support 
operator=(int);

The variable shouldnt need to be initialized.
jim

diff -ur mythtv.orig/libs/libmyth/uiphoneentry.cpp mythtv/libs/libmyth/uiphoneentry.cpp
--- mythtv.orig/libs/libmyth/uiphoneentry.cpp   2004-10-23 13:00:03.000000000 -0700
+++ mythtv/libs/libmyth/uiphoneentry.cpp        2005-02-04 15:57:20.864382730 -0800
@@ -16,7 +16,7 @@
             : MythDialog(parent, name)
 {
     m_active = false;
-    m_lastKey = -1;
     m_lastIndex = 0;
     m_drawBlink = false;
     m_inDelay = false;



More information about the mythtv-dev mailing list