Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nDisplay
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
nDisplay
Commits
fdbc3ba0
Commit
fdbc3ba0
authored
6 years ago
by
Ali Can Demiralp
Browse files
Options
Downloads
Patches
Plain Diff
Fixed linking issue due to multiple definitions of ToString and FromString.
parent
ddfdd54b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/DisplayCluster/Private/Misc/DisplayClusterTypesConverter.h
+2
-2
2 additions, 2 deletions
...isplayCluster/Private/Misc/DisplayClusterTypesConverter.h
with
2 additions
and
2 deletions
Source/DisplayCluster/Private/Misc/DisplayClusterTypesConverter.h
+
2
−
2
View file @
fdbc3ba0
...
@@ -18,7 +18,7 @@ namespace FDisplayClusterTypesConverter
...
@@ -18,7 +18,7 @@ namespace FDisplayClusterTypesConverter
// TYPE --> STRING
// TYPE --> STRING
//////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////
template
<
typename
ConvertFrom
>
template
<
typename
ConvertFrom
>
FString
ToString
(
const
ConvertFrom
&
from
);
static
FString
ToString
(
const
ConvertFrom
&
from
);
template
<
>
FString
ToString
<>
(
const
FString
&
from
)
{
return
from
;
}
template
<
>
FString
ToString
<>
(
const
FString
&
from
)
{
return
from
;
}
template
<
>
FString
ToString
<>
(
const
bool
&
from
)
{
return
(
from
?
DisplayClusterStrings
::
cfg
::
spec
::
ValTrue
:
DisplayClusterStrings
::
cfg
::
spec
::
ValFalse
);
}
template
<
>
FString
ToString
<>
(
const
bool
&
from
)
{
return
(
from
?
DisplayClusterStrings
::
cfg
::
spec
::
ValTrue
:
DisplayClusterStrings
::
cfg
::
spec
::
ValFalse
);
}
...
@@ -54,7 +54,7 @@ namespace FDisplayClusterTypesConverter
...
@@ -54,7 +54,7 @@ namespace FDisplayClusterTypesConverter
// STRING --> TYPE
// STRING --> TYPE
//////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////
template
<
typename
ConvertTo
>
template
<
typename
ConvertTo
>
ConvertTo
FromString
(
const
FString
&
from
);
static
ConvertTo
FromString
(
const
FString
&
from
);
template
<
>
FString
FromString
<>
(
const
FString
&
from
)
{
return
from
;
}
template
<
>
FString
FromString
<>
(
const
FString
&
from
)
{
return
from
;
}
template
<
>
bool
FromString
<>
(
const
FString
&
from
)
{
return
(
from
==
FString
(
"1"
)
||
from
==
DisplayClusterStrings
::
cfg
::
spec
::
ValTrue
);
}
template
<
>
bool
FromString
<>
(
const
FString
&
from
)
{
return
(
from
==
FString
(
"1"
)
||
from
==
DisplayClusterStrings
::
cfg
::
spec
::
ValTrue
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment