Документ взят из кэша поисковой машины. Адрес оригинального документа : http://kodomo.fbb.msu.ru/hg/allpy/raw-rev/2ab571ea8101
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 08:19:25 2012
Кодировка:

# HG changeset patch
# User boris
# Date 1311122783 -7200
# Node ID 2ab571ea8101e3d9d396df6b398017545ee0d422
# Parent 3a712982ceb8a43c5f7e3160ea576716c4b7ac2a
blocks3d/wt: fix a typo in variable name

current_taks -> current_tasks

diff -r 3a712982ceb8 -r 2ab571ea8101 blocks3d/wt/blocks3d-wt-widget.C
--- a/blocks3d/wt/blocks3d-wt-widget.C Wed Jul 20 02:42:04 2011 +0200
+++ b/blocks3d/wt/blocks3d-wt-widget.C Wed Jul 20 02:46:23 2011 +0200
@@ -20,7 +20,7 @@
#include
#include

-std::vector current_taks;
+std::vector current_tasks;

Blocks3DWidget::Blocks3DWidget(Wt::WContainerWidget* parent) :
Wt::WContainerWidget(parent),
@@ -189,8 +189,8 @@

void Blocks3DWidget::try_to_run()
{
- std::remove_if(current_taks.begin(), current_taks.end(), &Blocks3DWidget::is_completed);
- if (current_taks.size() >= Malakite::max_simultaneous_tasks)
+ std::remove_if(current_tasks.begin(), current_tasks.end(), &Blocks3DWidget::is_completed);
+ if (current_tasks.size() >= Malakite::max_simultaneous_tasks)
{
new Wt::WBreak(results_panel);
new Wt::WText(tr("server_overloaded"), results_panel);
@@ -298,7 +298,7 @@
timer->start();
go_button->hide();

- current_taks.push_back(tempfile_check);
+ current_tasks.push_back(tempfile_check);
}

void Blocks3DWidget::timeout()