소스 검색

libobs/util: Remove unnecessary parentheses

The previous commit added parentheses inside the macros so that the
parentheses is unnecessary when using the macros.
Norihiro Kamae 2 년 전
부모
커밋
03b679d68e
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      libobs/util/profiler.c

+ 3 - 3
libobs/util/profiler.c

@@ -452,8 +452,8 @@ static uint64_t copy_map_to_array(profile_times_table *map,
 {
 	migrate_old_entries(map, false);
 
-	da_reserve((*entry_buffer), map->occupied);
-	da_resize((*entry_buffer), 0);
+	da_reserve(*entry_buffer, map->occupied);
+	da_resize(*entry_buffer, 0);
 
 	uint64_t min__ = ~(uint64_t)0;
 	uint64_t max__ = 0;
@@ -465,7 +465,7 @@ static uint64_t copy_map_to_array(profile_times_table *map,
 
 		profiler_time_entry *entry = &map->entries[i].entry;
 
-		da_push_back((*entry_buffer), entry);
+		da_push_back(*entry_buffer, entry);
 
 		calls += entry->count;
 		min__ = (min__ < entry->time_delta) ? min__ : entry->time_delta;