From 3e4d91b6b029374813cfd0900db1fa8984ad7aa3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 18 Feb 2022 18:40:37 +0100 Subject: refactor: use string_view & improve argument parsing --- src/conversion.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/conversion.hpp') diff --git a/src/conversion.hpp b/src/conversion.hpp index 460a3ac..6da7606 100644 --- a/src/conversion.hpp +++ b/src/conversion.hpp @@ -1,6 +1,6 @@ #pragma once -#include +#include constexpr unsigned int NUMBER_BASE = 10U; @@ -10,4 +10,4 @@ constexpr unsigned int NUMBER_BASE = 10U; * @param str A string that possibly is a unsigned integer * @returns A unsigned integer */ -unsigned int str_to_uint(std::string str); +unsigned int str_to_uint(std::string_view str); -- cgit v1.2.3-18-g5258