Skip to content

Commit

Permalink
minor code cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
lumiscosity committed Oct 1, 2024
1 parent 6d2a411 commit cdf915e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/changelogwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ void ChangelogWidget::on_pushButton_clicked() {
z.addFileFromDisk(QString("Map%1.lmu").arg(i.split("[")[1].split("]")[0]).toStdString(), QString(work_dir + QString("/Map%1.lmu").arg(i.split("[")[1].split("]")[0])).toStdString());
} else if (!ex.match(i).hasMatch() && i.split(" ").size() >= 2) {
// file
auto temp2 = QString(work_dir + QString("/%1/%2").arg(i.split(" ")[1]).arg(fileex.match(i).captured(1)));
qDebug()<<temp2;
z.addFileFromDisk(QString("%1/%2").arg(i.split(" ")[1]).arg(fileex.match(i).captured(1)).toStdString(), QString(work_dir + QString("/%1/%2").arg(i.split(" ")[1]).arg(fileex.match(i).captured(1))).toStdString());
}
}
Expand Down
1 change: 0 additions & 1 deletion src/lcfops.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ namespace lcfops {
};

template <class T> QString compare(T orig, T work) {
// if i had a nickel for every time liblcf object defaults not being the same as rm2k3 defaults tripped up what would otherwise be a simple comparison i'd have two nickels. which isn't a lot but maybe i should make a PR about this
T empty;
if (orig == empty && work != empty) {
return "+";
Expand Down

0 comments on commit cdf915e

Please sign in to comment.