Initialize variables and formatting

This commit is contained in:
Jonas Kvinge
2021-06-21 19:55:18 +02:00
parent 83b54f2ae6
commit ebfd8cd6f7
3 changed files with 8 additions and 7 deletions

View File

@@ -46,19 +46,20 @@ class AlbumCoverExport : public QDialog {
};
struct DialogResult {
DialogResult() : cancelled_(false), export_downloaded_(false), export_embedded_(false), forcesize_(false), width_(0), height_(0) {}
bool cancelled_;
bool export_downloaded_;
bool export_embedded_;
QString fileName_;
QString filename_;
OverwriteMode overwrite_;
bool forceSize_;
bool forcesize_;
int width_;
int height_;
bool IsSizeForced() const {
return forceSize_ && width_ > 0 && height_ > 0;
return forcesize_ && width_ > 0 && height_ > 0;
}
bool RequiresCoverProcessing() const {