summaryrefslogtreecommitdiffstats
path: root/scene/debugger/script_debugger_remote.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-02-18 11:27:04 +0100
committerGitHub <noreply@github.com>2020-02-18 11:27:04 +0100
commitef5891091bceef2800b4fae4cd85af219e791467 (patch)
tree8d58cca8cae2c34d408450cfb5ceb198543147b7 /scene/debugger/script_debugger_remote.cpp
parentc7faf2e16b684f3dd0246dbdb662b1826dd24571 (diff)
parent3205a92ad872f918c8322cdcd1434c231a1fd251 (diff)
downloadredot-engine-ef5891091bceef2800b4fae4cd85af219e791467.tar.gz
Merge pull request #36311 from reduz/poolvector-deprecation
Convert all references and instances of PoolVector to Vector
Diffstat (limited to 'scene/debugger/script_debugger_remote.cpp')
-rw-r--r--scene/debugger/script_debugger_remote.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/debugger/script_debugger_remote.cpp b/scene/debugger/script_debugger_remote.cpp
index 80972ba3d1..0e61a5746b 100644
--- a/scene/debugger/script_debugger_remote.cpp
+++ b/scene/debugger/script_debugger_remote.cpp
@@ -996,13 +996,13 @@ void ScriptDebuggerRemote::idle_poll() {
if (visual_profiling) {
Vector<VS::FrameProfileArea> profile_areas = VS::get_singleton()->get_frame_profile();
if (profile_areas.size()) {
- PoolVector<String> area_names;
- PoolVector<real_t> area_times;
+ Vector<String> area_names;
+ Vector<real_t> area_times;
area_names.resize(profile_areas.size());
area_times.resize(profile_areas.size() * 2);
{
- PoolVector<String>::Write area_namesw = area_names.write();
- PoolVector<real_t>::Write area_timesw = area_times.write();
+ String *area_namesw = area_names.ptrw();
+ real_t *area_timesw = area_times.ptrw();
for (int i = 0; i < profile_areas.size(); i++) {
area_namesw[i] = profile_areas[i].name;