瀏覽代碼

libobs: Remove unnecessary const qualifier

This function returns a char *, so it should not be const (the value is
set from a function which also returns a char *, so there is no real
reason for this to be const).
Hunter L. Allen 7 年之前
父節點
當前提交
e3356d5ff6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libobs/obs.c

+ 1 - 1
libobs/obs.c

@@ -789,7 +789,7 @@ char *obs_find_data_file(const char *file)
 {
 {
 	struct dstr path = {0};
 	struct dstr path = {0};
 
 
-	const char *result = find_libobs_data_file(file);
+	char *result = find_libobs_data_file(file);
 	if (result)
 	if (result)
 		return result;
 		return result;