Cycles: Cleanup, don't use strict C prototypes

Those are more like a legacy of language, which is not
needed in C++.
This commit is contained in:
2018-11-09 12:01:38 +01:00
parent c86d4b1d80
commit 2330cadb0f
29 changed files with 63 additions and 63 deletions

View File

@@ -114,7 +114,7 @@ public:
return cancel_message;
}
void set_cancel_callback(function<void(void)> function)
void set_cancel_callback(function<void()> function)
{
cancel_cb = function;
}
@@ -323,7 +323,7 @@ public:
}
}
void set_update_callback(function<void(void)> function)
void set_update_callback(function<void()> function)
{
update_cb = function;
}
@@ -331,8 +331,8 @@ public:
protected:
thread_mutex progress_mutex;
thread_mutex update_mutex;
function<void(void)> update_cb;
function<void(void)> cancel_cb;
function<void()> update_cb;
function<void()> cancel_cb;
/* pixel_samples counts how many samples have been rendered over all pixel, not just per pixel.
* This makes the progress estimate more accurate when tiles with different sizes are used.