Source/Gorgon/Graphics/Bitmap.cpp

branch
4.x-dev
changeset 1704
a0fdf33ceefe
parent 1695
accb75196605
--- a/Source/Gorgon/Graphics/Bitmap.cpp	Wed Jul 07 12:41:34 2021 +0300
+++ b/Source/Gorgon/Graphics/Bitmap.cpp	Thu Jul 08 09:15:25 2021 +0300
@@ -279,7 +279,7 @@
 			}
 		}
 
-		Assume(img);
+		Assume(std::move(img));
 	}
 
 	void Bitmap::StripAlpha() {
@@ -302,7 +302,7 @@
 			}
 		}
 
-		Assume(img);
+		Assume(std::move(img));
 	}
 
 	void Bitmap::Grayscale(float ratio, GrayscaleConversionMethod method) {
@@ -385,7 +385,7 @@
             }
         }
         
-        Assume(img);
+        Assume(std::move(img));
     }
 	
 	std::vector<Geometry::Bounds> Bitmap::CreateLinearAtlas(Containers::Collection<const Bitmap> list, AtlasMargin margins) {
@@ -581,7 +581,7 @@
 			yy++;
 		}
 
-		Assume(img);
+		Assume(std::move(img));
 
 		return ret;
 	}

mercurial