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

This commit is contained in:
giantpune 2011-05-16 07:46:42 +00:00
parent 32cf8113e4
commit 15d6ba4344
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 );
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 LoadSettings();
void SaveSettings();
void LoadSettings();
#if 0
void TryToAddDefaultSettings();
void TryToAddDefaultSettings();
#endif
void AddStuffToMetaFolder();
QByteArray GenMeta( const QString &desc, quint64 tid, quint16 version );
void AddStuffToMetaFolder();
QByteArray GenMeta( const QString &desc, quint64 tid, quint16 version );
public slots:
//slots for getting info from the NUS downloader
@ -62,9 +62,9 @@ public slots:
void ReceiveTitleFromNus( NusJob job );
private slots:
void on_actionFormat_triggered();
void on_actionWrite_meta_entries_triggered();
void on_pushButton_CachePathBrowse_clicked();
void on_actionFormat_triggered();
void on_actionWrite_meta_entries_triggered();
void on_pushButton_CachePathBrowse_clicked();
void on_actionAbout_triggered();
void on_pushButton_initNand_clicked();
void on_actionNew_nand_from_keys_triggered();