소스 검색

libobs/util: Rename da_swap_item to da_swap

The name was inconsistent with the darray_swap function that it's a
macro for.
jp9000 10 년 전
부모
커밋
e23a20874b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      libobs/util/darray.h

+ 1 - 1
libobs/util/darray.h

@@ -521,7 +521,7 @@ static inline void darray_swap(const size_t element_size,
 #define da_move_item(v, from, to) \
 	darray_move_item(sizeof(*v.array), &v.da, from, to)
 
-#define da_swap_item(v, idx1, idx2) \
+#define da_swap(v, idx1, idx2) \
 	darray_swap(sizeof(v.array), &v.da, idx1, idx2)
 
 #ifdef __cplusplus