Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenVolumeMesh
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
6
Issues
6
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenVolumeMesh
OpenVolumeMesh
Commits
8b6042b6
Commit
8b6042b6
authored
May 24, 2019
by
Martin Heistermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properties: pass default value by reference (makes cppcheck happy and possibly avoids a copy
parent
f604e8f2
Pipeline
#10524
canceled with stage
in 3 minutes and 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/OpenVolumeMesh/Core/PropertyDefines.hh
src/OpenVolumeMesh/Core/PropertyDefines.hh
+2
-2
src/OpenVolumeMesh/Core/PropertyDefinesT_impl.hh
src/OpenVolumeMesh/Core/PropertyDefinesT_impl.hh
+1
-1
No files found.
src/OpenVolumeMesh/Core/PropertyDefines.hh
View file @
8b6042b6
...
...
@@ -85,11 +85,11 @@ template<typename T, typename Entity>
class
PropertyTT
:
public
PropertyPtr
<
OpenVolumeMeshPropertyT
<
T
>
,
Entity
>
{
public:
template
<
typename
MeshT
>
PropertyTT
(
MeshT
*
mesh
,
const
std
::
string
&
_name
,
const
T
_def
=
T
())
PropertyTT
(
MeshT
*
mesh
,
const
std
::
string
&
_name
,
const
T
&
_def
=
T
())
:
PropertyTT
(
std
::
move
(
mesh
->
template
request_property
<
T
,
Entity
>
(
_name
,
_def
)))
{}
using
PropertyHandleT
=
OpenVolumeMesh
::
PropHandleT
<
Entity
>
;
PropertyTT
(
const
std
::
string
&
_name
,
const
std
::
string
&
_internal_type_name
,
ResourceManager
&
_resMan
,
PropertyHandleT
_handle
,
const
T
_def
=
T
());
PropertyTT
(
const
std
::
string
&
_name
,
const
std
::
string
&
_internal_type_name
,
ResourceManager
&
_resMan
,
PropertyHandleT
_handle
,
const
T
&
_def
=
T
());
~
PropertyTT
()
override
=
default
;
BaseProperty
*
clone
(
ResourceManager
&
_resMan
,
OpenVolumeMeshHandle
_handle
)
const
override
;
const
std
::
string
entityType
()
const
override
{
return
entityTypeName
<
Entity
>
();
}
...
...
src/OpenVolumeMesh/Core/PropertyDefinesT_impl.hh
View file @
8b6042b6
...
...
@@ -42,7 +42,7 @@
namespace
OpenVolumeMesh
{
template
<
typename
T
,
typename
Entity
>
PropertyTT
<
T
,
Entity
>::
PropertyTT
(
const
std
::
string
&
_name
,
const
std
::
string
&
_internal_type_name
,
ResourceManager
&
_resMan
,
PropertyHandleT
_handle
,
const
T
_def
)
:
PropertyTT
<
T
,
Entity
>::
PropertyTT
(
const
std
::
string
&
_name
,
const
std
::
string
&
_internal_type_name
,
ResourceManager
&
_resMan
,
PropertyHandleT
_handle
,
const
T
&
_def
)
:
PropertyPtr
<
OpenVolumeMeshPropertyT
<
T
>
,
Entity
>
(
new
OpenVolumeMeshPropertyT
<
T
>
(
_name
,
_internal_type_name
,
_def
),
_resMan
,
_handle
)
{
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment