Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

Commit 17570d8

Browse files
committed
Use auto for a function return in MultiTextureAtlas.
1 parent 240f3d2 commit 17570d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dang-gl/include/dang-gl/Texturing/MultiTextureAtlas.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class TextureAtlasMultiTexture {
2525
: bordered_images_((ensureCompatible(bordered_images), std::move(bordered_images)))
2626
{}
2727

28-
BorderedImage& operator[](TSubTextureEnum sub_texture) { return bordered_images_[sub_texture]; }
28+
auto& operator[](TSubTextureEnum sub_texture) { return bordered_images_[sub_texture]; }
2929

30-
const BorderedImage& operator[](TSubTextureEnum sub_texture) const { return bordered_images_[sub_texture]; }
30+
const auto& operator[](TSubTextureEnum sub_texture) const { return bordered_images_[sub_texture]; }
3131

3232
// --- BorderedImageData concept:
3333

0 commit comments

Comments
 (0)