Commit 207bab563c418c6f9ed7030c79eaeb39faf37486
1 parent
5008f637
A little cleanup in misc.cpp
Showing
1 changed file
with
4 additions
and
3 deletions
openbr/plugins/misc.cpp
| @@ -355,7 +355,7 @@ BR_REGISTER(Transform, AsTransform) | @@ -355,7 +355,7 @@ BR_REGISTER(Transform, AsTransform) | ||
| 355 | /*! | 355 | /*! |
| 356 | * \ingroup transforms | 356 | * \ingroup transforms |
| 357 | * \brief Apply the input regular expression to the value of inputProperty, store the matched portion in outputProperty. | 357 | * \brief Apply the input regular expression to the value of inputProperty, store the matched portion in outputProperty. |
| 358 | - * \author Josh Klontz \cite jklontz | 358 | + * \author Charles Otto \cite caotto |
| 359 | */ | 359 | */ |
| 360 | class RegexPropertyTransform : public UntrainableMetaTransform | 360 | class RegexPropertyTransform : public UntrainableMetaTransform |
| 361 | { | 361 | { |
| @@ -371,7 +371,7 @@ class RegexPropertyTransform : public UntrainableMetaTransform | @@ -371,7 +371,7 @@ class RegexPropertyTransform : public UntrainableMetaTransform | ||
| 371 | { | 371 | { |
| 372 | dst = src; | 372 | dst = src; |
| 373 | QRegularExpression re(regexp); | 373 | QRegularExpression re(regexp); |
| 374 | - QRegularExpressionMatch match = re.match(dst.file.get<QString>(inputProprety)); | 374 | + QRegularExpressionMatch match = re.match(dst.file.get<QString>(inputProperty)); |
| 375 | if (!match.hasMatch()) | 375 | if (!match.hasMatch()) |
| 376 | qFatal("Unable to match regular expression \"%s\" to base name \"%s\"!", qPrintable(regexp), qPrintable(dst.file.get<QString>(inputProperty))); | 376 | qFatal("Unable to match regular expression \"%s\" to base name \"%s\"!", qPrintable(regexp), qPrintable(dst.file.get<QString>(inputProperty))); |
| 377 | dst.file.set(outputProperty, match.captured(match.lastCapturedIndex())); | 377 | dst.file.set(outputProperty, match.captured(match.lastCapturedIndex())); |
| @@ -383,7 +383,7 @@ BR_REGISTER(Transform, RegexPropertyTransform) | @@ -383,7 +383,7 @@ BR_REGISTER(Transform, RegexPropertyTransform) | ||
| 383 | /*! | 383 | /*! |
| 384 | * \ingroup transforms | 384 | * \ingroup transforms |
| 385 | * \brief Remove templates with the specified file extension or metadata value. | 385 | * \brief Remove templates with the specified file extension or metadata value. |
| 386 | - * \author Charles Otto \cite caotto | 386 | + * \author Josh Klontz \cite jklontz |
| 387 | */ | 387 | */ |
| 388 | class RemoveTemplatesTransform : public UntrainableMetaTransform | 388 | class RemoveTemplatesTransform : public UntrainableMetaTransform |
| 389 | { | 389 | { |
| @@ -530,6 +530,7 @@ class IncrementalOutputTransform : public TimeVaryingTransform | @@ -530,6 +530,7 @@ class IncrementalOutputTransform : public TimeVaryingTransform | ||
| 530 | // Drop the current gallery. | 530 | // Drop the current gallery. |
| 531 | void finalize(TemplateList & data) | 531 | void finalize(TemplateList & data) |
| 532 | { | 532 | { |
| 533 | + (void) data; | ||
| 533 | galleryUp = false; | 534 | galleryUp = false; |
| 534 | } | 535 | } |
| 535 | 536 |