Skip to content

Commit

Permalink
address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Nov 30, 2023
1 parent 54f92d9 commit d788b73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions examples/cpp/shared_recording/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ int main() {
rerun::RecordingStream("rerun_example_shared_recording", "my_shared_recording");
rec.spawn().exit_on_failure();

int pid = getpid();
std::ostringstream oss;
oss << "Hello from " << pid;

rec.log("updates", rerun::TextLog(oss.str()));
rec.log("updates", rerun::TextLog(std::string("Hello from ") + std::to_string(getpid())));

std::cout << "Run me again to append more data to the recording!" << std::endl;
}
2 changes: 1 addition & 1 deletion rerun_cpp/src/rerun/recording_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace rerun {
}

RecordingStream::RecordingStream(
std::string_view app_id, std::optional<std::string_view> recording_id, StoreKind store_kind
std::string_view app_id, std::string_view recording_id, StoreKind store_kind
)
: _store_kind(store_kind) {
check_binary_and_header_version_match().handle();
Expand Down
2 changes: 1 addition & 1 deletion rerun_cpp/src/rerun/recording_stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace rerun {
/// \param recording_id The user-chosen name of the recording being logged to.
/// \param store_kind Whether to log to the recording store or the blueprint store.
RecordingStream(
std::string_view app_id, std::optional<std::string_view> recording_id = std::nullopt,
std::string_view app_id, std::string_view recording_id = std::string_view(),
StoreKind store_kind = StoreKind::Recording
);
~RecordingStream();
Expand Down

0 comments on commit d788b73

Please sign in to comment.