Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
8df0a363
Commit
8df0a363
authored
Feb 21, 2003
by
ml
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
2deefb94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
wb/lib/wb/src/wb_attribute.cpp
wb/lib/wb/src/wb_attribute.cpp
+21
-5
No files found.
wb/lib/wb/src/wb_attribute.cpp
View file @
8df0a363
...
...
@@ -78,6 +78,8 @@ wb_attribute::wb_attribute(pwr_tStatus sts, wb_orep* orep, const char* bname) :
}
if
(
oddSts
())
m_orep
->
ref
();
else
m_orep
=
0
;
}
}
...
...
@@ -109,14 +111,20 @@ wb_attribute::wb_attribute(pwr_tStatus sts, wb_orep* orep, char const* bname, co
&
m_type
,
&
m_flags
,
0
))
{
m_adrep
->
unref
();
m_adrep
=
0
;
m_sts
=
LDH__NOSUCHATTR
;
}
}
}
else
m_adrep
=
0
;
delete
cd
;
if
(
bd
)
delete
bd
;
if
(
bd
)
delete
bd
;
}
if
(
oddSts
())
m_orep
->
ref
();
else
m_orep
=
0
;
}
}
...
...
@@ -162,11 +170,13 @@ wb_attribute::wb_attribute(wb_attribute& pa, int idx, const char* aname) :
&
m_type
,
&
m_flags
,
0
))
{
m_adrep
->
unref
();
m_adrep
=
0
;
m_sts
=
LDH__NOSUCHATTR
;
}
else
{
m_offset
=
pa
.
m_offset
+
idx
*
pa
.
m_size
/
pa
.
m_elements
;
}
}
}
else
m_adrep
=
0
;
}
if
(
bd
)
delete
bd
;
...
...
@@ -192,10 +202,16 @@ wb_attribute::wb_attribute(wb_attribute& pa, int idx, const char* aname) :
wb_attribute
::~
wb_attribute
()
{
if
(
m_orep
)
if
(
m_orep
)
{
m_orep
->
unref
();
if
(
m_adrep
)
m_orep
=
0
;
}
if
(
m_adrep
)
{
m_adrep
->
unref
();
m_adrep
=
0
;
}
}
wb_attribute
&
wb_attribute
::
operator
=
(
const
wb_attribute
&
x
)
...
...
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