diff options
author | jacobkeeler <jacob.keeler@livioradio.com> | 2021-04-15 11:26:37 -0400 |
---|---|---|
committer | jacobkeeler <jacob.keeler@livioradio.com> | 2021-04-15 11:26:37 -0400 |
commit | a6c6a0a12ee8ea2e20d4fb0f89d564893572356f (patch) | |
tree | 44470a6fa8b4039daf6b54e40c3de86af1f39514 | |
parent | 4ac70be0cd7a36ccee11a6c0c43fc39e1715efd5 (diff) | |
download | sdl_core-fix/resumption_data_to_storage_folder.tar.gz |
Fix errors after mergefix/resumption_data_to_storage_folder
-rw-r--r-- | src/components/resumption/src/last_state_impl.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/components/resumption/src/last_state_impl.cc b/src/components/resumption/src/last_state_impl.cc index 8ce911d1a1..2083369a8e 100644 --- a/src/components/resumption/src/last_state_impl.cc +++ b/src/components/resumption/src/last_state_impl.cc @@ -54,12 +54,6 @@ LastStateImpl::~LastStateImpl() { void LastStateImpl::SaveStateToFileSystem() { SDL_LOG_AUTO_TRACE(); - const std::string full_path = - !app_storage_folder_.empty() - ? app_storage_folder_ + "/" + app_info_storage_ - : app_info_storage_; - const std::string& str = dictionary_.toStyledString(); - const std::vector<uint8_t> char_vector_pdata(str.begin(), str.end()); std::string styled_string; { @@ -67,6 +61,11 @@ void LastStateImpl::SaveStateToFileSystem() { styled_string = dictionary_.toStyledString(); } + const std::string full_path = + !app_storage_folder_.empty() + ? app_storage_folder_ + "/" + app_info_storage_ + : app_info_storage_; + const std::vector<uint8_t> char_vector_pdata(styled_string.begin(), styled_string.end()); DCHECK(file_system::CreateDirectoryRecursively(app_storage_folder_)); |