mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-02 18:44:53 -05:00
Merge pull request #2541 from thunder2/warnings
Removed compiler warnings in retroshare-gui
This commit is contained in:
commit
094551b093
@ -830,7 +830,6 @@ void CreateCircleDialog::fillIdentitiesList(const std::vector<RsGxsIdGroup>& id_
|
||||
bool isSignedByFriendNode = isSigned && rsPeers->isPgpFriend(idGroup.mPgpId);
|
||||
|
||||
/* do filtering */
|
||||
bool ok = false;
|
||||
|
||||
if(!(acceptAll ||(acceptOnlySignedIdentities && isSigned) ||(acceptOnlyIdentitiesSignedByFriend && isSignedByFriendNode)))
|
||||
{
|
||||
|
@ -145,7 +145,7 @@ void HomePage::handleEvent(std::shared_ptr<const RsEvent> e)
|
||||
break;
|
||||
}
|
||||
}
|
||||
void HomePage::certContextMenu(QPoint point)
|
||||
void HomePage::certContextMenu(QPoint /*point*/)
|
||||
{
|
||||
QMenu menu(this) ;
|
||||
|
||||
|
@ -136,7 +136,7 @@ bool PostedGroupDialog::service_updateGroup(const RsGroupMetaData& editedMeta)
|
||||
return rsPosted->editBoard(grp);
|
||||
}
|
||||
|
||||
bool PostedGroupDialog::service_loadGroup(const RsGxsGenericGroupData *data, Mode mode, QString& description)
|
||||
bool PostedGroupDialog::service_loadGroup(const RsGxsGenericGroupData *data, Mode /*mode*/, QString& description)
|
||||
{
|
||||
const RsPostedGroup *pgroup = dynamic_cast<const RsPostedGroup*>(data);
|
||||
|
||||
|
@ -130,7 +130,7 @@ bool RSFeedWidget::eventFilter(QObject *object, QEvent *event)
|
||||
return QWidget::eventFilter(object, event);
|
||||
}
|
||||
|
||||
void RSFeedWidget::feedAdded(FeedItem *feedItem, QTreeWidgetItem *treeItem)
|
||||
void RSFeedWidget::feedAdded(FeedItem */*feedItem*/, QTreeWidgetItem */*treeItem*/)
|
||||
{
|
||||
}
|
||||
|
||||
@ -433,7 +433,6 @@ void RSFeedWidget::feedItemDestroyed(qulonglong id)
|
||||
QTreeWidgetItem *RSFeedWidget::findTreeWidgetItem(const FeedItem *w)
|
||||
{
|
||||
QTreeWidgetItemIterator it(ui->treeWidget);
|
||||
QTreeWidgetItem *treeItem=NULL;
|
||||
|
||||
// this search could probably be automatised by giving the tree items the identifier as data for some specific role, then calling QTreeWidget::findItems()
|
||||
#warning TODO
|
||||
|
@ -23,7 +23,7 @@
|
||||
#include "FeedHolder.h"
|
||||
|
||||
/** Constructor */
|
||||
FeedItem::FeedItem(FeedHolder *fh, uint32_t feedId, QWidget *parent) : QWidget(parent), mHash(0),mFeedHolder(fh),mFeedId(feedId)
|
||||
FeedItem::FeedItem(FeedHolder *fh, uint32_t feedId, QWidget *parent) : QWidget(parent),mFeedHolder(fh),mFeedId(feedId),mHash(0)
|
||||
{
|
||||
mWasExpanded = false;
|
||||
}
|
||||
|
@ -487,7 +487,7 @@ void GxsChannelPostItem::fill()
|
||||
/* subject */
|
||||
ui->titleLabel->setText(QString::fromUtf8(mPost.mMeta.mMsgName.c_str()));
|
||||
|
||||
uint32_t autorized_lines = (int)floor((ui->logoLabel->height() - ui->titleLabel->height() - ui->buttonHLayout->sizeHint().height())/QFontMetricsF(ui->subjectLabel->font()).height());
|
||||
//uint32_t autorized_lines = (int)floor((ui->logoLabel->height() - ui->titleLabel->height() - ui->buttonHLayout->sizeHint().height())/QFontMetricsF(ui->subjectLabel->font()).height());
|
||||
|
||||
// fill first 4 lines of message. (csoler) Disabled the replacement of smileys and links, because the cost is too crazy
|
||||
//ui->subjectLabel->setText(RsHtml().formatText(NULL, RsStringUtil::CopyLines(QString::fromUtf8(mPost.mMsg.c_str()), autorized_lines), RSHTML_FORMATTEXT_EMBED_SMILEYS | RSHTML_FORMATTEXT_EMBED_LINKS));
|
||||
|
@ -99,7 +99,6 @@ void GxsCreateCommentDialog::createComment()
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t token;
|
||||
mCommentService->createComment(comment);
|
||||
close();
|
||||
}
|
||||
|
@ -31,7 +31,7 @@
|
||||
* #define DEBUG_ITEM 1
|
||||
**/
|
||||
|
||||
GxsGroupFeedItem::GxsGroupFeedItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsGroupId &groupId, bool isHome, RsGxsIfaceHelper *iface, bool autoUpdate) :
|
||||
GxsGroupFeedItem::GxsGroupFeedItem(FeedHolder *feedHolder, uint32_t feedId, const RsGxsGroupId &groupId, bool isHome, RsGxsIfaceHelper *iface, bool /*autoUpdate*/) :
|
||||
FeedItem(feedHolder,feedId,NULL)
|
||||
{
|
||||
#ifdef DEBUG_ITEM
|
||||
@ -102,7 +102,7 @@ void GxsGroupFeedItem::copyGroupLink()
|
||||
}
|
||||
}
|
||||
|
||||
void GxsGroupFeedItem::fillDisplaySlot(bool complete)
|
||||
void GxsGroupFeedItem::fillDisplaySlot(bool /*complete*/)
|
||||
{
|
||||
requestGroup();
|
||||
}
|
||||
|
@ -371,7 +371,7 @@ void GxsMessageFramePostWidget::loadPosts(const std::set<RsGxsMessageId>& msgIds
|
||||
/**************************************************************/
|
||||
|
||||
GxsMessageFramePostThread::GxsMessageFramePostThread(const std::vector<RsGxsGenericMsgData*>& posts,GxsMessageFramePostWidget *parent)
|
||||
: mPosts(posts),QThread(parent), mParent(parent)
|
||||
: QThread(parent), mPosts(posts), mParent(parent)
|
||||
{
|
||||
mStopped = false;
|
||||
}
|
||||
|
@ -26,7 +26,7 @@
|
||||
|
||||
#define TOKEN_TYPE_STATISTICS 1
|
||||
|
||||
GxsUserNotify::GxsUserNotify(RsGxsIfaceHelper *ifaceImpl, const GxsGroupFrameDialog *g,QObject *parent) : UserNotify(parent), mGroupFrameDialog(g)
|
||||
GxsUserNotify::GxsUserNotify(RsGxsIfaceHelper */*ifaceImpl*/, const GxsGroupFrameDialog *g,QObject *parent) : UserNotify(parent), mGroupFrameDialog(g)
|
||||
{
|
||||
mNewThreadMessageCount = 0;
|
||||
mNewChildMessageCount = 0;
|
||||
|
@ -66,6 +66,7 @@ void GxsChannelDialog::handleEvent_main_thread(std::shared_ptr<const RsEvent> ev
|
||||
{
|
||||
case RsChannelEventCode::STATISTICS_CHANGED: // [[fallthrough]];
|
||||
updateDisplay(true); // no breaks, on purpose!
|
||||
Q_FALLTHROUGH();
|
||||
|
||||
case RsChannelEventCode::NEW_MESSAGE: // [[fallthrough]];
|
||||
case RsChannelEventCode::UPDATED_MESSAGE: // [[fallthrough]];
|
||||
|
@ -107,7 +107,7 @@ public:
|
||||
static const int THUMBNAIL_W = 4;
|
||||
static const int THUMBNAIL_H = 6;
|
||||
|
||||
static constexpr char *CHAN_DEFAULT_IMAGE = ":images/thumb-default-video.png";
|
||||
static constexpr const char *CHAN_DEFAULT_IMAGE = ":images/thumb-default-video.png";
|
||||
|
||||
virtual ~ChannelPostThumbnailView();
|
||||
ChannelPostThumbnailView(QWidget *parent=NULL,uint32_t flags=FLAG_ALLOW_PAN | FLAG_SHOW_TEXT | FLAG_SCALE_FONT);
|
||||
|
@ -350,7 +350,7 @@
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
</property>
|
||||
<widget class="QWidget" name="layoutWidget">
|
||||
<widget class="QWidget" name="layoutWidget_2">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QFrame" name="toolBarFrame">
|
||||
|
@ -477,7 +477,7 @@ void NotifyQt::notifyChatCleared(const ChatId& chat_id)
|
||||
emit chatCleared(chat_id);
|
||||
}
|
||||
|
||||
void NotifyQt::notifyTurtleSearchResult(uint32_t search_id,const std::list<TurtleGxsInfo>& found_groups)
|
||||
void NotifyQt::notifyTurtleSearchResult(uint32_t /*search_id*/,const std::list<TurtleGxsInfo>& /*found_groups*/)
|
||||
{
|
||||
std::cerr << "(EE) missing code to handle GXS turtle search result." << std::endl;
|
||||
}
|
||||
|
@ -80,7 +80,6 @@ void JsonApiPage::enableJsonApi(bool checked)
|
||||
bool JsonApiPage::updateParams()
|
||||
{
|
||||
bool ok = true;
|
||||
bool changed = false;
|
||||
|
||||
uint16_t port = static_cast<uint16_t>(ui.portSpinBox->value());
|
||||
QString listenAddress = ui.listenAddressLineEdit->text();
|
||||
|
@ -177,7 +177,6 @@ SettingsPage::initStackedWidget()
|
||||
addPage(new SoundPage() ); // SOUND
|
||||
addPage(new ServicePermissionsPage() ); // PERMISSIONS
|
||||
#ifdef RS_JSONAPI
|
||||
JsonApiPage *jsonapi_p = new JsonApiPage() ;
|
||||
addPage(new JsonApiPage());
|
||||
#ifdef RS_WEBUI
|
||||
WebuiPage *webui_p = new WebuiPage() ;
|
||||
|
@ -44,6 +44,7 @@
|
||||
#include "util/misc.h"
|
||||
#include "util/qtthreadsutils.h"
|
||||
|
||||
#ifdef TODO
|
||||
static QColor colorScale(float f)
|
||||
{
|
||||
if(f == 0)
|
||||
@ -51,6 +52,7 @@ static QColor colorScale(float f)
|
||||
else
|
||||
return QColor::fromHsv((int)((1.0-f)*280),200,255) ;
|
||||
}
|
||||
#endif
|
||||
|
||||
GxsIdStatistics::GxsIdStatistics(QWidget *parent)
|
||||
: RsAutoUpdatePage(4000,parent)
|
||||
|
@ -33,7 +33,7 @@ Histogram::Histogram(double start, double end, int bins)
|
||||
std::cerr << "Null histogram created! Please check your parameters" << std::endl;
|
||||
}
|
||||
|
||||
void Histogram::draw(QPainter *painter) const
|
||||
void Histogram::draw(QPainter */*painter*/) const
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
/** Constructor */
|
||||
ClickableLabel::ClickableLabel(QWidget* parent, Qt::WindowFlags f)
|
||||
: QLabel(parent) {
|
||||
: QLabel(parent, f) {
|
||||
|
||||
}
|
||||
|
||||
@ -30,6 +30,6 @@ ClickableLabel::~ClickableLabel() {
|
||||
|
||||
}
|
||||
|
||||
void ClickableLabel::mousePressEvent(QMouseEvent* event) {
|
||||
void ClickableLabel::mousePressEvent(QMouseEvent* /*event*/) {
|
||||
emit clicked();
|
||||
}
|
||||
|
@ -21,7 +21,6 @@
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user