From 345a0612effed1eb9983ef104b29a3594210027a Mon Sep 17 00:00:00 2001 From: Martin Olivier Date: Tue, 25 May 2021 01:08:02 +0200 Subject: [PATCH] fix: std::move on DyLib::exception && doc --- DyLib.hpp | 6 +++--- README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/DyLib.hpp b/DyLib.hpp index d52be54..516c7c9 100644 --- a/DyLib.hpp +++ b/DyLib.hpp @@ -2,7 +2,7 @@ * \file DyLib.hpp * \brief Cross-platform Dynamic Library Loader * \author Martin Olivier - * \version 1.4 + * \version 1.4.1 * * MIT License * Copyright (c) 2021 Martin Olivier @@ -76,7 +76,7 @@ class DyLib protected: const std::string m_error; public: - explicit exception(std::string &&message) : m_error(message) {}; + explicit exception(std::string &&message) : m_error(std::move(message)) {}; [[nodiscard]] const char *what() const noexcept override {return m_error.c_str();}; }; @@ -167,7 +167,7 @@ class DyLib * If a dynamic library was already opened, it will be unload and replaced * * @param path path to the dynamic library to load - * @param ext use DyLib::OS_EXT to specify the os extension (optional parameter) + * @param ext use DyLib::extension to specify the os extension (optional parameter) */ void open(const char *path) { diff --git a/README.md b/README.md index dab13dc..273ffd0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # DyLib - Dynamic Library Loader for C++ -[![DyLib](https://img.shields.io/badge/DyLib-v1.4-blue.svg)](https://github.com/tocola/DyLib/releases/tag/v1.4) +[![DyLib](https://img.shields.io/badge/DyLib-v1.4.1-blue.svg)](https://github.com/tocola/DyLib/releases/tag/v1.4.1) [![MIT license](https://img.shields.io/badge/License-MIT-orange.svg)](https://github.com/tocola/DyLib/blob/main/LICENSE) [![CPP Version](https://img.shields.io/badge/C++-11/14/17/20-darkgreen.svg)](https://isocpp.org/) @@ -10,7 +10,7 @@ [![workflow](https://github.com/tocola/DyLib/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/tocola/DyLib/actions/workflows/unit_tests.yml) [![codecov](https://codecov.io/gh/tocola/DyLib/branch/main/graph/badge.svg?token=4V6A9B7PII)](https://codecov.io/gh/tocola/DyLib) -[![GitHub download](https://img.shields.io/github/downloads/tocola/DyLib/total?style=for-the-badge)](https://github.com/tocola/DyLib/releases/download/v1.4/DyLib.hpp) +[![GitHub download](https://img.shields.io/github/downloads/tocola/DyLib/total?style=for-the-badge)](https://github.com/tocola/DyLib/releases/download/v1.4.1/DyLib.hpp) The goal of this C++ Library is to load dynamic libraries (.so, .dll, .dylib) and access its functions and global variables at runtime. @@ -19,7 +19,7 @@ Works on `Linux`, `Windows`, `MacOS` # Installation -Click [HERE](https://github.com/tocola/DyLib/releases/download/v1.4/DyLib.hpp) to download the DyLib header file +Click [HERE](https://github.com/tocola/DyLib/releases/download/v1.4.1/DyLib.hpp) to download the DyLib header file # Documentation