mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fixed unused variable warning
This commit is contained in:
parent
c13e2ca341
commit
3dfe4e1288
@ -830,7 +830,6 @@ void CreateCircleDialog::fillIdentitiesList(const std::vector<RsGxsIdGroup>& id_
|
|||||||
bool isSignedByFriendNode = isSigned && rsPeers->isPgpFriend(idGroup.mPgpId);
|
bool isSignedByFriendNode = isSigned && rsPeers->isPgpFriend(idGroup.mPgpId);
|
||||||
|
|
||||||
/* do filtering */
|
/* do filtering */
|
||||||
bool ok = false;
|
|
||||||
|
|
||||||
if(!(acceptAll ||(acceptOnlySignedIdentities && isSigned) ||(acceptOnlyIdentitiesSignedByFriend && isSignedByFriendNode)))
|
if(!(acceptAll ||(acceptOnlySignedIdentities && isSigned) ||(acceptOnlyIdentitiesSignedByFriend && isSignedByFriendNode)))
|
||||||
{
|
{
|
||||||
|
@ -145,7 +145,7 @@ void HomePage::handleEvent(std::shared_ptr<const RsEvent> e)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void HomePage::certContextMenu(QPoint point)
|
void HomePage::certContextMenu(QPoint /*point*/)
|
||||||
{
|
{
|
||||||
QMenu menu(this) ;
|
QMenu menu(this) ;
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ bool PostedGroupDialog::service_updateGroup(const RsGroupMetaData& editedMeta)
|
|||||||
return rsPosted->editBoard(grp);
|
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);
|
const RsPostedGroup *pgroup = dynamic_cast<const RsPostedGroup*>(data);
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ bool RSFeedWidget::eventFilter(QObject *object, QEvent *event)
|
|||||||
return QWidget::eventFilter(object, 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)
|
QTreeWidgetItem *RSFeedWidget::findTreeWidgetItem(const FeedItem *w)
|
||||||
{
|
{
|
||||||
QTreeWidgetItemIterator it(ui->treeWidget);
|
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()
|
// 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
|
#warning TODO
|
||||||
|
@ -487,7 +487,7 @@ void GxsChannelPostItem::fill()
|
|||||||
/* subject */
|
/* subject */
|
||||||
ui->titleLabel->setText(QString::fromUtf8(mPost.mMeta.mMsgName.c_str()));
|
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
|
// 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));
|
//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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t token;
|
|
||||||
mCommentService->createComment(comment);
|
mCommentService->createComment(comment);
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
* #define DEBUG_ITEM 1
|
* #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)
|
FeedItem(feedHolder,feedId,NULL)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_ITEM
|
#ifdef DEBUG_ITEM
|
||||||
@ -102,7 +102,7 @@ void GxsGroupFeedItem::copyGroupLink()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GxsGroupFeedItem::fillDisplaySlot(bool complete)
|
void GxsGroupFeedItem::fillDisplaySlot(bool /*complete*/)
|
||||||
{
|
{
|
||||||
requestGroup();
|
requestGroup();
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
|
|
||||||
#define TOKEN_TYPE_STATISTICS 1
|
#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;
|
mNewThreadMessageCount = 0;
|
||||||
mNewChildMessageCount = 0;
|
mNewChildMessageCount = 0;
|
||||||
|
@ -477,7 +477,7 @@ void NotifyQt::notifyChatCleared(const ChatId& chat_id)
|
|||||||
emit chatCleared(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;
|
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 JsonApiPage::updateParams()
|
||||||
{
|
{
|
||||||
bool ok = true;
|
bool ok = true;
|
||||||
bool changed = false;
|
|
||||||
|
|
||||||
uint16_t port = static_cast<uint16_t>(ui.portSpinBox->value());
|
uint16_t port = static_cast<uint16_t>(ui.portSpinBox->value());
|
||||||
QString listenAddress = ui.listenAddressLineEdit->text();
|
QString listenAddress = ui.listenAddressLineEdit->text();
|
||||||
|
@ -177,7 +177,6 @@ SettingsPage::initStackedWidget()
|
|||||||
addPage(new SoundPage() ); // SOUND
|
addPage(new SoundPage() ); // SOUND
|
||||||
addPage(new ServicePermissionsPage() ); // PERMISSIONS
|
addPage(new ServicePermissionsPage() ); // PERMISSIONS
|
||||||
#ifdef RS_JSONAPI
|
#ifdef RS_JSONAPI
|
||||||
JsonApiPage *jsonapi_p = new JsonApiPage() ;
|
|
||||||
addPage(new JsonApiPage());
|
addPage(new JsonApiPage());
|
||||||
#ifdef RS_WEBUI
|
#ifdef RS_WEBUI
|
||||||
WebuiPage *webui_p = new WebuiPage() ;
|
WebuiPage *webui_p = new WebuiPage() ;
|
||||||
|
@ -33,7 +33,7 @@ Histogram::Histogram(double start, double end, int bins)
|
|||||||
std::cerr << "Null histogram created! Please check your parameters" << std::endl;
|
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 */
|
/** Constructor */
|
||||||
ClickableLabel::ClickableLabel(QWidget* parent, Qt::WindowFlags f)
|
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();
|
emit clicked();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user