From 11f9154ce0924b828af7ebf817118a6d83020edd Mon Sep 17 00:00:00 2001 From: Mihai Tudor Panu Date: Thu, 13 Aug 2015 15:18:43 -0700 Subject: [PATCH] grovescam: made file path constant to remove compiler warnings Signed-off-by: Mihai Tudor Panu --- src/grovescam/grovescam.cxx | 2 +- src/grovescam/grovescam.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grovescam/grovescam.cxx b/src/grovescam/grovescam.cxx index 6db79e92..222848ce 100644 --- a/src/grovescam/grovescam.cxx +++ b/src/grovescam/grovescam.cxx @@ -369,7 +369,7 @@ bool GROVESCAM::doCapture() return true; } -bool GROVESCAM::storeImage(char *fname) +bool GROVESCAM::storeImage(const char *fname) { if (!fname) { diff --git a/src/grovescam/grovescam.h b/src/grovescam/grovescam.h index da65e448..6d8680e8 100644 --- a/src/grovescam/grovescam.h +++ b/src/grovescam/grovescam.h @@ -169,7 +169,7 @@ namespace upm { * @param fname Name of the file to write * @return True if successful */ - bool storeImage(char *fname); + bool storeImage(const char *fname); /** * Returns the picture length. Note: this is only valid after