From 6ee4050182e6ac2196baf0147ee59f193ed37eb1 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 14 Jan 2019 18:02:59 +0200 Subject: libcamera: pipeline_handler: Rename handlers() method to factories() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The PipelineHandlerFactory::handlers() static method returns a list of factories, not a list of handlers. Rename it accordingly. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund --- src/libcamera/pipeline_handler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libcamera/pipeline_handler.cpp') diff --git a/src/libcamera/pipeline_handler.cpp b/src/libcamera/pipeline_handler.cpp index d244acbd..c19ab94f 100644 --- a/src/libcamera/pipeline_handler.cpp +++ b/src/libcamera/pipeline_handler.cpp @@ -92,7 +92,7 @@ namespace libcamera { * \param[in] name Name of the pipeline handler class * * Creating an instance of the factory registers is with the global list of - * factories, accessible through the handlers() function. + * factories, accessible through the factories() function. * * The factory \a name is used for debug purpose and shall be unique. */ @@ -127,7 +127,7 @@ PipelineHandlerFactory::PipelineHandlerFactory(const char *name) */ void PipelineHandlerFactory::registerType(PipelineHandlerFactory *factory) { - std::vector &factories = handlers(); + std::vector &factories = PipelineHandlerFactory::factories(); factories.push_back(factory); @@ -142,7 +142,7 @@ void PipelineHandlerFactory::registerType(PipelineHandlerFactory *factory) * * \return the list of pipeline handler factories */ -std::vector &PipelineHandlerFactory::handlers() +std::vector &PipelineHandlerFactory::factories() { static std::vector factories; return factories; -- cgit v1.2.1