Skip to content

Commit 07524f4

Browse files
committed
refactor(config): use string_view instead of const string
1 parent 2b40aa9 commit 07524f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ namespace config {
16041604
* @param height Parsed height, written only on success.
16051605
* @return `true` when the string is a valid positive resolution.
16061606
*/
1607-
bool parse_stream_resolution(const std::string &value, int &width, int &height) {
1607+
bool parse_stream_resolution(const std::string_view &value, int &width, int &height) {
16081608
const auto separator = value.find('x');
16091609
if (separator == std::string::npos) {
16101610
return false;

0 commit comments

Comments
 (0)