Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Universal Logging Plugin
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Plugins
Universal Logging Plugin
Merge requests
!16
Develop
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Develop
develop
into
master
Overview
0
Commits
48
Pipelines
0
Changes
2
Merged
Jan Delember
requested to merge
develop
into
master
3 years ago
Overview
0
Commits
48
Pipelines
0
Changes
2
0
0
Merge request reports
Viewing commit
8d539baa
Prev
Next
Show latest version
2 files
+
3
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
8d539baa
Change File_Handle raw pointer to unique pointer to make ownership explicit
· 8d539baa
mbellgardt
authored
3 years ago
Source/UniversalLogging/Private/LogFileStream.cpp
+
2
−
6
View file @ 8d539baa
Edit in single-file editor
Open in Web IDE
Show full file
@@ -23,7 +23,7 @@ void LogFileStream::Open()
FString
file_path
=
FPaths
::
ConvertRelativePathToFull
(
FPaths
::
ProjectDir
()
+
Filepath
);
platform_file
.
CreateDirectoryTree
(
*
file_path
);
file_path
=
FPaths
::
Combine
(
file_path
,
Filename
);
File_Handle
=
platform_file
.
OpenWrite
(
*
file_path
);
File_Handle
.
Reset
(
platform_file
.
OpenWrite
(
*
file_path
)
)
;
if
(
!
File_Handle
)
{
UE_LOG
(
LogUni
,
Error
,
TEXT
(
"Universal Logging: The file %s could not be opened for writing."
),
*
file_path
);
@@ -35,11 +35,7 @@ void LogFileStream::Open()
void
LogFileStream
::
Close
()
{
if
(
File_Handle
)
{
delete
File_Handle
;
}
File_Handle
=
nullptr
;
File_Handle
.
Reset
();
bIs_Open
=
false
;
}
Loading