From 740ec2e8e9a4f34a38708f59293f3f5a2ccd38ac Mon Sep 17 00:00:00 2001 From: Jason Shuler Date: Wed, 15 May 2024 04:35:21 -0400 Subject: [PATCH] Redoing more fixes... --- src/spells/meshreplace.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spells/meshreplace.cpp b/src/spells/meshreplace.cpp index cbb69018..07df0d4b 100644 --- a/src/spells/meshreplace.cpp +++ b/src/spells/meshreplace.cpp @@ -45,7 +45,7 @@ class spMeshUpdate final : public Spell }; QHash loadMapFile(const QString& filename); - void replacePaths(NifModel *nif, NifItem *item, const QHash &pathMap, QRegularExpression regex, updateStats &stats); + void replacePaths(NifModel *nif, NifItem *item, const QHash &pathMap, const QRegularExpression ®ex, updateStats &stats); QModelIndex cast( NifModel * nif, const QModelIndex & index ) override final; }; @@ -74,7 +74,7 @@ QHash spMeshUpdate::loadMapFile(const QString& filename) { } //lookup all mesh paths in qhash and replace if found. -void spMeshUpdate::replacePaths(NifModel *nif, NifItem *item, const QHash &pathMap, const QRegularExpression regex, updateStats stats) +void spMeshUpdate::replacePaths(NifModel *nif, NifItem *item, const QHash &pathMap, const QRegularExpression ®ex, updateStats &stats) { if ( item && item->value().isString() && ( item->name().endsWith( "Path" ) ) ) { QString itemValue( item->getValueAsString() ); @@ -135,7 +135,7 @@ QModelIndex spMeshUpdate::cast ( NifModel * nif, const QModelIndex & index ) std::string msg = "Updated " + std::to_string(stats.replaceCnt) + " out of " + std::to_string(stats.matchedCnt) + " vanilla looking meshes"; QDialog dlg; - dlg.setWindowTitle("Mesh Update Results") + dlg.setWindowTitle("Mesh Update Results"); QLabel * lb = new QLabel( &dlg ); lb->setAlignment( Qt::AlignCenter ); lb->setText( Spell::tr( QString::fromStdString(msg).toUtf8().constData() ) );