Changeset - r24534:7bcc54d7060f
[Not reviewed]
master
0 2 0
J0anJosep - 4 years ago 2020-12-24 16:10:44
juanjo.ng.83@gmail.com
Doc: Remove some SmallVector references from documentation.
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/newgrf_class.h
Show inline comments
 
@@ -24,8 +24,8 @@ private:
 

	
 
	/**
 
	 * The actual classes.
 
	 * @note We store pointers to membes of this array in various places outside this class (e.g. to 'name' for GRF string resolving).
 
	 *       Thus this must be a static array, and cannot be a self-resizing SmallVector or similar.
 
	 * @note We store pointers to members of this array in various places outside this class (e.g. to 'name' for GRF string resolving).
 
	 *       Thus this must be a static array, and cannot be a self-resizing vector or similar.
 
	 */
 
	static NewGRFClass<Tspec, Tid, Tmax> classes[Tmax];
 

	
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -719,7 +719,7 @@ CommandCost CmdBuildTunnel(TileIndex sta
 

	
 
		/* CMD_TERRAFORM_LAND may append further items to _cleared_object_areas,
 
		 * however it will never erase or re-order existing items.
 
		 * _cleared_object_areas is a value-type SmallVector, therefore appending items
 
		 * _cleared_object_areas is a value-type self-resizing vector, therefore appending items
 
		 * may result in a backing-store re-allocation, which would invalidate the coa pointer.
 
		 * The index of the coa pointer into the _cleared_object_areas vector remains valid,
 
		 * and can be used safely after the CMD_TERRAFORM_LAND operation.
0 comments (0 inline, 0 general)