Skip to content

Instantly share code, notes, and snippets.

==16896== HEAP SUMMARY:
==16896== in use at exit: 73,896 bytes in 157 blocks
==16896== total heap usage: 21,825,986 allocs, 21,825,829 frees, 1,602,613,343 bytes allocated
==16896==
==16896== Searching for pointers to 157 not-freed blocks
==16896== Checked 328,672 bytes
==16896==
==16896== 112 bytes in 1 blocks are still reachable in loss record 1 of 11
==16896== at 0x4C2BBEF: malloc (vg_replace_malloc.c:299)
==16896== by 0x6621C8C: __gconv_open (gconv_open.c:114)
diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp
index 32a172f..508efd1 100644
--- a/src/gui/mainwindow.cpp
+++ b/src/gui/mainwindow.cpp
@@ -46,6 +46,7 @@
#include <QScrollBar>
#include <QMimeData>
#include <QCryptographicHash>
+#include <QHostAddress>
diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp
index 32a172f..6d7a0e2 100644
--- a/src/gui/mainwindow.cpp
+++ b/src/gui/mainwindow.cpp
@@ -89,6 +89,10 @@ void qt_mac_set_dock_menu(QMenu *menu);
#include "core/net/downloadhandler.h"
#endif
+#include <boost/random/mersenne_twister.hpp>
+#include <boost/random/uniform_int_distribution.hpp>
@sledgehammer999
sledgehammer999 / gist:7880c1c52237afe3d6ec
Last active August 29, 2015 14:15
git and github explanation

For those wanting to use git along with Github.

First rule: git and Github are different things. Git is a tool that manages git repositories. Github is the name of an online service which hosts several git repositories.

Let's assume that you want to contribute to qBittorrent.

  1. Make sure that you have installed git on your PC. This guide will be based on command line.
@sledgehammer999
sledgehammer999 / gist:42841b775c859220045f
Created January 11, 2015 16:29
This is related to #2385
diff --git a/src/addnewtorrentdialog.cpp b/src/addnewtorrentdialog.cpp
index e0ac8af..e970133 100644
--- a/src/addnewtorrentdialog.cpp
+++ b/src/addnewtorrentdialog.cpp
@@ -245,6 +245,7 @@ bool AddNewTorrentDialog::loadMagnet(const QString &magnet_uri)
HiddenData::addData(m_hash);
QBtSession::instance()->addMagnetUri(m_url, false);
setMetadataProgressIndicator(true, tr("Retrieving metadata..."));
+ ui->lblhash->setText(m_hash);
set FOR foreach
newlines = LF
indent_with_tabs = 0
indent_columns = 4
indent_switch_case = 0
indent_namespace = true
indent_class = true
indent_col1_comment = true
diff --git a/src/webui/btjson.cpp b/src/webui/btjson.cpp
index 0b77451..ad54ab4 100644
--- a/src/webui/btjson.cpp
+++ b/src/webui/btjson.cpp
@@ -29,7 +29,6 @@
*/
#include "btjson.h"
-#include "misc.h"
#include "fs_utils.h"