Skip to content

Commit 86f7b6f

Browse files
committed
Add rerun_vrs namespace to utils files
1 parent 9666e7a commit 86f7b6f

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

src/utils.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#include "utils.h"
22

3-
std::string add_quotes(const std::string& str) {
4-
return "\"" + str + "\"";
5-
}
3+
namespace rerun_vrs {
4+
5+
std::string add_quotes(const std::string& str) {
6+
return "\"" + str + "\"";
7+
}
8+
9+
} // namespace rerun_vrs

src/utils.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
#pragma once
2+
13
#include <string>
24

3-
/// Add double quotes around string
4-
/// Useful to support arbitary strings as part of entity path in Rerun
5-
std::string add_quotes(const std::string& str);
5+
namespace rerun_vrs {
6+
7+
/// Add double quotes around string
8+
/// Useful to support arbitary strings as part of entity path in Rerun
9+
std::string add_quotes(const std::string& str);
10+
11+
} // namespace rerun_vrs

0 commit comments

Comments
 (0)