[v2,2/3] libcamera: ipa_proxy: Unify configurationFile argument name
diff mbox series

Message ID 20240708123803.1006689-3-mzamazal@redhat.com
State Accepted
Headers show
Series
  • Fix misleading error messages
Related show

Commit Message

Milan Zamazal July 8, 2024, 12:38 p.m. UTC
The argument name is different in the declaration and the definition.
Let's use the same one in both, namely `name'.

Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
---
 include/libcamera/internal/ipa_proxy.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kieran Bingham July 31, 2024, 9:19 a.m. UTC | #1
Quoting Milan Zamazal (2024-07-08 13:38:02)
> The argument name is different in the declaration and the definition.
> Let's use the same one in both, namely `name'.
> 
> Signed-off-by: Milan Zamazal <mzamazal@redhat.com>


Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> ---
>  include/libcamera/internal/ipa_proxy.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/libcamera/internal/ipa_proxy.h b/include/libcamera/internal/ipa_proxy.h
> index ed6a5bcf..5240f69f 100644
> --- a/include/libcamera/internal/ipa_proxy.h
> +++ b/include/libcamera/internal/ipa_proxy.h
> @@ -31,7 +31,7 @@ public:
>  
>         bool isValid() const { return valid_; }
>  
> -       std::string configurationFile(const std::string &file) const;
> +       std::string configurationFile(const std::string &name) const;
>  
>  protected:
>         std::string resolvePath(const std::string &file) const;
> -- 
> 2.44.1
>
Laurent Pinchart July 31, 2024, 9:25 a.m. UTC | #2
On Wed, Jul 31, 2024 at 10:19:46AM +0100, Kieran Bingham wrote:
> Quoting Milan Zamazal (2024-07-08 13:38:02)
> > The argument name is different in the declaration and the definition.
> > Let's use the same one in both, namely `name'.
> > 
> > Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
> 
> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> > ---
> >  include/libcamera/internal/ipa_proxy.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/include/libcamera/internal/ipa_proxy.h b/include/libcamera/internal/ipa_proxy.h
> > index ed6a5bcf..5240f69f 100644
> > --- a/include/libcamera/internal/ipa_proxy.h
> > +++ b/include/libcamera/internal/ipa_proxy.h
> > @@ -31,7 +31,7 @@ public:
> >  
> >         bool isValid() const { return valid_; }
> >  
> > -       std::string configurationFile(const std::string &file) const;
> > +       std::string configurationFile(const std::string &name) const;
> >  
> >  protected:
> >         std::string resolvePath(const std::string &file) const;

Patch
diff mbox series

diff --git a/include/libcamera/internal/ipa_proxy.h b/include/libcamera/internal/ipa_proxy.h
index ed6a5bcf..5240f69f 100644
--- a/include/libcamera/internal/ipa_proxy.h
+++ b/include/libcamera/internal/ipa_proxy.h
@@ -31,7 +31,7 @@  public:
 
 	bool isValid() const { return valid_; }
 
-	std::string configurationFile(const std::string &file) const;
+	std::string configurationFile(const std::string &name) const;
 
 protected:
 	std::string resolvePath(const std::string &file) const;