Commit 7b413bd39fe6f3ddd9f7ea2e8a83464bd6da30da
1 parent
10f0beb6
improved cast readability
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/openbr_plugin.h
| ... | ... | @@ -277,7 +277,7 @@ struct BR_EXPORT File |
| 277 | 277 | static QList<T> get(const QList<U> &fileList, const QString &key, const T &defaultValue) |
| 278 | 278 | { |
| 279 | 279 | QList<T> result; result.reserve(fileList.size()); |
| 280 | - foreach (const U &f, fileList) result.append(((const File&)f).get<T>(key, defaultValue)); | |
| 280 | + foreach (const U &f, fileList) result.append(static_cast<const File&>(f).get<T>(key, defaultValue)); | |
| 281 | 281 | return result; |
| 282 | 282 | } |
| 283 | 283 | ... | ... |