소스 검색

Rename GlobalAccessor::get to GlobalAccessor::read

This makes the interface a bit more like Reference's interface.
Ole 9 년 전
부모
커밋
99e602b7a8
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      lib/luwra/state.hpp

+ 3 - 3
lib/luwra/state.hpp

@@ -46,16 +46,16 @@ struct GlobalAccessor {
 	 * Retrieve the associated value.
 	 */
 	template <typename V> inline
-	V get() {
+	V read() {
 		return getGlobal<V>(state, key);
 	}
 
 	/**
-	 * Shortcut for `get()`
+	 * Shortcut for `read()`
 	 */
 	template <typename V> inline
 	operator V() {
-		return get<V>();
+		return read<V>();
 	}
 
 	/**