* ohneschwanzenegger: fix possible crash, use const reference when installing shared contents

git-svn-id: http://wiiqt.googlecode.com/svn/trunk@88 389f4c8b-5dfe-645f-db0e-df882bc27289
This commit is contained in:
giantpune 2011-05-16 07:46:42 +00:00
parent 8a683c7078
commit 04094e8e54
2 changed files with 536 additions and 533 deletions

File diff suppressed because it is too large Load Diff

View File

@ -44,15 +44,15 @@ private:
bool InstallNUSItem( NusJob job ); bool InstallNUSItem( NusJob job );
quint16 CreateIfNeeded( const QString &path, quint32 uid, quint16 gid, quint8 attr, quint8 user_perm, quint8 group_perm, quint8 other_perm ); quint16 CreateIfNeeded( const QString &path, quint32 uid, quint16 gid, quint8 attr, quint8 user_perm, quint8 group_perm, quint8 other_perm );
bool InstallSharedContent( const QByteArray stuff, const QByteArray hash = QByteArray() ); bool InstallSharedContent( const QByteArray &stuff, const QByteArray &hash = QByteArray() );
void SaveSettings(); void SaveSettings();
void LoadSettings(); void LoadSettings();
#if 0 #if 0
void TryToAddDefaultSettings(); void TryToAddDefaultSettings();
#endif #endif
void AddStuffToMetaFolder(); void AddStuffToMetaFolder();
QByteArray GenMeta( const QString &desc, quint64 tid, quint16 version ); QByteArray GenMeta( const QString &desc, quint64 tid, quint16 version );
public slots: public slots:
//slots for getting info from the NUS downloader //slots for getting info from the NUS downloader
@ -62,9 +62,9 @@ public slots:
void ReceiveTitleFromNus( NusJob job ); void ReceiveTitleFromNus( NusJob job );
private slots: private slots:
void on_actionFormat_triggered(); void on_actionFormat_triggered();
void on_actionWrite_meta_entries_triggered(); void on_actionWrite_meta_entries_triggered();
void on_pushButton_CachePathBrowse_clicked(); void on_pushButton_CachePathBrowse_clicked();
void on_actionAbout_triggered(); void on_actionAbout_triggered();
void on_pushButton_initNand_clicked(); void on_pushButton_initNand_clicked();
void on_actionNew_nand_from_keys_triggered(); void on_actionNew_nand_from_keys_triggered();