Fixed some compiler warnings

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7590 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2014-10-09 15:17:42 +00:00
parent dd1f88a1bb
commit 894addedb4
3 changed files with 6 additions and 3 deletions

View File

@ -505,6 +505,7 @@ void RetroShareLink::check()
switch (_type) switch (_type)
{ {
case TYPE_UNKNOWN: case TYPE_UNKNOWN:
case TYPE_PRIVATE_CHAT:
_valid = false; _valid = false;
break; break;
case TYPE_EXTRAFILE: case TYPE_EXTRAFILE:
@ -590,6 +591,7 @@ QString RetroShareLink::title() const
switch (_type) { switch (_type) {
case TYPE_UNKNOWN: case TYPE_UNKNOWN:
case TYPE_PRIVATE_CHAT:
break; break;
case TYPE_PUBLIC_MSG: case TYPE_PUBLIC_MSG:
{ {
@ -664,6 +666,7 @@ QString RetroShareLink::toString() const
switch (_type) { switch (_type) {
case TYPE_UNKNOWN: case TYPE_UNKNOWN:
case TYPE_PRIVATE_CHAT:
return ""; return "";
case TYPE_FILE: case TYPE_FILE:
@ -971,6 +974,7 @@ static void processList(const QStringList &list, const QString &textSingular, co
case TYPE_MESSAGE: case TYPE_MESSAGE:
case TYPE_CERTIFICATE: case TYPE_CERTIFICATE:
case TYPE_PUBLIC_MSG: case TYPE_PUBLIC_MSG:
case TYPE_PRIVATE_CHAT:
// no need to ask // no need to ask
break; break;

View File

@ -280,7 +280,7 @@ void FriendList::changeEvent(QEvent *e)
} }
} }
void FriendList::initializeHeader(bool afterLoadSettings) void FriendList::initializeHeader(bool /*afterLoadSettings*/)
{ {
// set column size // set column size
QHeaderView *header = ui->peerTreeWidget->header(); QHeaderView *header = ui->peerTreeWidget->header();
@ -587,7 +587,6 @@ void FriendList::insertPeers()
bool isStatusColumnHidden = ui->peerTreeWidget->isColumnHidden(COLUMN_STATE); bool isStatusColumnHidden = ui->peerTreeWidget->isColumnHidden(COLUMN_STATE);
bool isAvatarColumnHidden = ui->peerTreeWidget->isColumnHidden(COLUMN_AVATAR); bool isAvatarColumnHidden = ui->peerTreeWidget->isColumnHidden(COLUMN_AVATAR);
bool isIPColumnHidden = ui->peerTreeWidget->isColumnHidden(COLUMN_IP);
std::list<StatusInfo> statusInfo; std::list<StatusInfo> statusInfo;
rsStatus->getStatusList(statusInfo); rsStatus->getStatusList(statusInfo);

View File

@ -37,7 +37,7 @@ public:
template<class ID_CLASS> static void showIt(const ID_CLASS& id, enumPage page) template<class ID_CLASS> static void showIt(const ID_CLASS& id, enumPage page)
{ {
ConfCertDialog *confdialog = confdialog = instance(id); ConfCertDialog *confdialog = instance(id);
switch (page) { switch (page) {
case PageDetails: case PageDetails: