Skip to content
This repository has been archived by the owner on Nov 29, 2020. It is now read-only.

Commit

Permalink
C++ standard compliance.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tulon committed May 28, 2010
1 parent c5eafe8 commit 01eac8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ThreadPriority.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ ThreadPriority::load(
ThreadPriority
ThreadPriority::load(QString const& key, Priority dflt)
{
return load(QSettings(), key, dflt);
QSettings settings;
return load(settings, key, dflt);
}

void
Expand Down
2 changes: 1 addition & 1 deletion WorkerThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ WorkerThread::Dispatcher::updateThreadPriority(BackgroundTask const& task)

ThreadPriority prio(
ThreadPriority::load(
QSettings(), "settings/batch_processing_priority", ThreadPriority::Normal
"settings/batch_processing_priority", ThreadPriority::Normal
)
);
if (task.type() == task.INTERACTIVE) {
Expand Down

0 comments on commit 01eac8c

Please sign in to comment.