Skip to content

Commit

Permalink
Merge pull request #491 from amarsman/master
Browse files Browse the repository at this point in the history
Don't use a deprecated method

And lots of name cleaning 馃槃
  • Loading branch information
annejan committed Oct 21, 2019
2 parents 30fc277 + 86af8c1 commit 51802e9
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/configdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ void ConfigDialog::on_deleteButton_clicked() {
foreach (item, itemList)
selectedRows.insert(item->row());
// get a list, and sort it big to small
QList<int> rows = selectedRows.toList();
QList<int> rows = selectedRows.values();
std::sort(rows.begin(), rows.end());
// now actually do the removing:
foreach (int row, rows)
Expand Down
2 changes: 1 addition & 1 deletion src/configdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ConfigDialog : public QDialog {
QHash<QString, QString> getProfiles();
void wizard();
void genKey(QString, QDialog *);
void useTrayIcon(bool useTrayIdon);
void useTrayIcon(bool useSystray);
void useGit(bool useGit);
void useOtp(bool useOtp);
void useQrencode(bool useQrencode);
Expand Down
4 changes: 2 additions & 2 deletions src/imitatepass.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ class ImitatePass : public Pass, private simpleTransaction {
virtual void GitPush() Q_DECL_OVERRIDE;
virtual void Show(QString file) Q_DECL_OVERRIDE;
virtual void OtpGenerate(QString file) Q_DECL_OVERRIDE;
virtual void Insert(QString file, QString value,
virtual void Insert(QString file, QString newValue,
bool overwrite = false) Q_DECL_OVERRIDE;
virtual void Remove(QString file, bool isDir = false) Q_DECL_OVERRIDE;
virtual void Init(QString path, const QList<UserInfo> &list) Q_DECL_OVERRIDE;
virtual void Init(QString path, const QList<UserInfo> &users) Q_DECL_OVERRIDE;

void reencryptPath(const QString &dir);
signals:
Expand Down
2 changes: 1 addition & 1 deletion src/pass.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class Pass : public QObject {
virtual QString Generate_b(unsigned int length, const QString &charset);

void GenerateGPGKeys(QString batch);
QList<UserInfo> listKeys(QStringList keystring, bool secret = false);
QList<UserInfo> listKeys(QStringList keystrings, bool secret = false);
QList<UserInfo> listKeys(QString keystring = "", bool secret = false);
void updateEnv();
static QStringList getRecipientList(QString for_file);
Expand Down
2 changes: 1 addition & 1 deletion src/qtpass.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private slots:
void onKeyGenerationComplete(const QString &p_output,
const QString &p_errout);

void showInTextBrowser(QString toShow, QString prefix = QString(),
void showInTextBrowser(QString output, QString prefix = QString(),
QString postfix = QString());
};

Expand Down
4 changes: 2 additions & 2 deletions src/realpass.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
\brief Wrapper for executing pass to handle the password-store
*/
class RealPass : public Pass {
void executePass(PROCESS id, const QStringList &arg,
void executePass(PROCESS id, const QStringList &args,
QString input = QString(), bool readStdout = true,
bool readStderr = true);

Expand All @@ -21,7 +21,7 @@ class RealPass : public Pass {
virtual void GitPush() Q_DECL_OVERRIDE;
virtual void Show(QString file) Q_DECL_OVERRIDE;
virtual void OtpGenerate(QString file) Q_DECL_OVERRIDE;
virtual void Insert(QString file, QString value,
virtual void Insert(QString file, QString newValue,
bool overwrite = false) Q_DECL_OVERRIDE;
virtual void Remove(QString file, bool isDir = false) Q_DECL_OVERRIDE;
virtual void Init(QString path, const QList<UserInfo> &users) Q_DECL_OVERRIDE;
Expand Down

0 comments on commit 51802e9

Please sign in to comment.