]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/stream/textstream.h
added string-pooling for shader variable names and entity keys
[xonotic/netradiant.git] / libs / stream / textstream.h
index 96fc7a6a10dfcc29a2a2d073a2671ff3ad397d90..8e0c72c44ceff16a369ee28ae6028d86a39ec06e 100644 (file)
@@ -302,13 +302,11 @@ inline TextOutputStreamType& ostream_write(TextOutputStreamType& ostream, const
 }
 
 
-typedef ArrayRange<const char> StringRange;
-
 /// \brief Writes a \p range of characters to \p ostream.
 template<typename TextOutputStreamType>
 inline TextOutputStreamType& ostream_write(TextOutputStreamType& ostream, const StringRange& range)
 {
-  ostream.write(range.begin, range.end - range.begin);
+  ostream.write(range.first, range.last - range.first);
   return ostream;
 }