mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 16:09:35 -05:00
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:
parent
dd1f88a1bb
commit
894addedb4
@ -505,6 +505,7 @@ void RetroShareLink::check()
|
||||
switch (_type)
|
||||
{
|
||||
case TYPE_UNKNOWN:
|
||||
case TYPE_PRIVATE_CHAT:
|
||||
_valid = false;
|
||||
break;
|
||||
case TYPE_EXTRAFILE:
|
||||
@ -590,6 +591,7 @@ QString RetroShareLink::title() const
|
||||
|
||||
switch (_type) {
|
||||
case TYPE_UNKNOWN:
|
||||
case TYPE_PRIVATE_CHAT:
|
||||
break;
|
||||
case TYPE_PUBLIC_MSG:
|
||||
{
|
||||
@ -664,6 +666,7 @@ QString RetroShareLink::toString() const
|
||||
|
||||
switch (_type) {
|
||||
case TYPE_UNKNOWN:
|
||||
case TYPE_PRIVATE_CHAT:
|
||||
return "";
|
||||
|
||||
case TYPE_FILE:
|
||||
@ -971,6 +974,7 @@ static void processList(const QStringList &list, const QString &textSingular, co
|
||||
case TYPE_MESSAGE:
|
||||
case TYPE_CERTIFICATE:
|
||||
case TYPE_PUBLIC_MSG:
|
||||
case TYPE_PRIVATE_CHAT:
|
||||
// no need to ask
|
||||
break;
|
||||
|
||||
|
@ -280,7 +280,7 @@ void FriendList::changeEvent(QEvent *e)
|
||||
}
|
||||
}
|
||||
|
||||
void FriendList::initializeHeader(bool afterLoadSettings)
|
||||
void FriendList::initializeHeader(bool /*afterLoadSettings*/)
|
||||
{
|
||||
// set column size
|
||||
QHeaderView *header = ui->peerTreeWidget->header();
|
||||
@ -587,7 +587,6 @@ void FriendList::insertPeers()
|
||||
|
||||
bool isStatusColumnHidden = ui->peerTreeWidget->isColumnHidden(COLUMN_STATE);
|
||||
bool isAvatarColumnHidden = ui->peerTreeWidget->isColumnHidden(COLUMN_AVATAR);
|
||||
bool isIPColumnHidden = ui->peerTreeWidget->isColumnHidden(COLUMN_IP);
|
||||
|
||||
std::list<StatusInfo> statusInfo;
|
||||
rsStatus->getStatusList(statusInfo);
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
|
||||
template<class ID_CLASS> static void showIt(const ID_CLASS& id, enumPage page)
|
||||
{
|
||||
ConfCertDialog *confdialog = confdialog = instance(id);
|
||||
ConfCertDialog *confdialog = instance(id);
|
||||
|
||||
switch (page) {
|
||||
case PageDetails:
|
||||
|
Loading…
Reference in New Issue
Block a user