diff options
author | cathook <b01902109@csie.ntu.edu.tw> | 2014-06-24 14:23:04 +0800 |
---|---|---|
committer | cathook <b01902109@csie.ntu.edu.tw> | 2014-06-24 14:23:04 +0800 |
commit | 0667012e725099e13045ebf4f2f2bee5bd049edc (patch) | |
tree | 62dd8fb100d493323f24f6e54cf403f2c8ad18c4 /meowpp/gra/Photo.h | |
parent | a9955a1a51df2b268da4d28f9ad10dbaf9815634 (diff) | |
download | meow-0667012e725099e13045ebf4f2f2bee5bd049edc.tar meow-0667012e725099e13045ebf4f2f2bee5bd049edc.tar.gz meow-0667012e725099e13045ebf4f2f2bee5bd049edc.tar.bz2 meow-0667012e725099e13045ebf4f2f2bee5bd049edc.tar.lz meow-0667012e725099e13045ebf4f2f2bee5bd049edc.tar.xz meow-0667012e725099e13045ebf4f2f2bee5bd049edc.tar.zst meow-0667012e725099e13045ebf4f2f2bee5bd049edc.zip |
add test code "feature"
Diffstat (limited to 'meowpp/gra/Photo.h')
-rw-r--r-- | meowpp/gra/Photo.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meowpp/gra/Photo.h b/meowpp/gra/Photo.h index 78063ec..1545608 100644 --- a/meowpp/gra/Photo.h +++ b/meowpp/gra/Photo.h @@ -178,7 +178,7 @@ public: /*! * @brief 回傳\c bitmap */ - Bitmap<Pixel> const& bitmap() const { + Bitmap<Pixel> bitmap() const { return self->bmp_; } @@ -195,7 +195,7 @@ public: * @param [in] bmp 新的 bitmap * @return 新的 \c bitmap */ - Bitmap<Pixel> const& bitmap(Bitmap<Pixel> const& bmp) { + Bitmap<Pixel> bitmap(Bitmap<Pixel> const& bmp) { self()->bmp_.copyFrom(bmp); return bitmap(); } |