mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-16 04:52:37 -04:00
Changed settings to local variable, no more as pointer on all classes.
RshareSettings settings; settings.value(...); It should lower memory usage and removes memory leaks. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2886 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2f8d21ab76
commit
0c46da0dd2
52 changed files with 310 additions and 428 deletions
|
@ -35,9 +35,6 @@ ConnectDialog::ConnectDialog(QWidget *parent, Qt::WFlags flags)
|
|||
{
|
||||
/* Invoke Qt Designer generated QObject setup routine */
|
||||
ui.setupUi(this);
|
||||
|
||||
/* Create Bandwidth Graph related QObjects */
|
||||
_settings = new RshareSettings();
|
||||
|
||||
// Create the status bar
|
||||
statusBar()->showMessage("Peer Informations");
|
||||
|
@ -53,7 +50,6 @@ ConnectDialog::ConnectDialog(QWidget *parent, Qt::WFlags flags)
|
|||
/** Destructor. */
|
||||
ConnectDialog::~ConnectDialog()
|
||||
{
|
||||
delete _settings;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -23,8 +23,6 @@
|
|||
#ifndef _CONNECTDIALOG_H
|
||||
#define _CONNECTDIALOG_H
|
||||
|
||||
#include <gui/settings/rsharesettings.h>
|
||||
|
||||
#include "ui_ConnectDialog.h"
|
||||
|
||||
|
||||
|
@ -69,9 +67,6 @@ void setAuthCode(std::string id, std::string code);
|
|||
std::string authCode;
|
||||
std::string authId;
|
||||
|
||||
/** A VidaliaSettings object that handles getting/saving settings */
|
||||
RshareSettings* _settings;
|
||||
|
||||
/** Qt Designer generated object */
|
||||
Ui::ConnectDialog ui;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue