Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
dcdb
dcdb
Commits
5c7ca5ab
Commit
5c7ca5ab
authored
Dec 04, 2019
by
Micha Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix: remove obsolete calls to releaseSensors()
parent
8e877ac4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
+0
-3
dcdbpusher/includes/ConfiguratorTemplate.h
dcdbpusher/includes/ConfiguratorTemplate.h
+0
-1
dcdbpusher/includes/ConfiguratorTemplateEntity.h
dcdbpusher/includes/ConfiguratorTemplateEntity.h
+0
-2
No files found.
dcdbpusher/includes/ConfiguratorTemplate.h
View file @
5c7ca5ab
...
...
@@ -199,7 +199,6 @@ class ConfiguratorTemplate : public ConfiguratorInterface {
<<
val
.
second
.
data
()
<<
" could not be read! Omitting"
;
}
}
else
{
group
->
releaseSensors
();
sensor
=
std
::
make_shared
<
SBase
>
(
val
.
second
.
data
());
if
(
readSensorBase
(
*
sensor
,
val
.
second
))
{
group
->
pushBackSensor
(
sensor
);
...
...
dcdbpusher/includes/ConfiguratorTemplateEntity.h
View file @
5c7ca5ab
...
...
@@ -230,7 +230,6 @@ class ConfiguratorTemplateEntity : public ConfiguratorTemplate<SBase, SGroup> {
<<
val
.
second
.
data
()
<<
" could not be read! Omitting"
;
}
}
else
{
group
->
releaseSensors
();
sensor
=
std
::
make_shared
<
SBase
>
(
val
.
second
.
data
());
if
(
readSensorBase
(
*
sensor
,
val
.
second
))
{
group
->
pushBackSensor
(
sensor
);
...
...
@@ -433,7 +432,6 @@ class ConfiguratorTemplateEntity : public ConfiguratorTemplate<SBase, SGroup> {
<<
val
.
second
.
data
()
<<
" could not be read! Omitting"
;
}
}
else
{
group
->
releaseSensors
();
sensor
=
std
::
make_shared
<
SBase
>
(
val
.
second
.
data
());
if
(
readSensorBase
(
*
sensor
,
val
.
second
))
{
group
->
pushBackSensor
(
sensor
);
...
...
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