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
8f5f8a45
Commit
8f5f8a45
authored
Jun 14, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Even status is returned instead of throw to fix refcount problems
parent
5ec55588
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
wb/lib/wb/src/wb_attribute.cpp
wb/lib/wb/src/wb_attribute.cpp
+11
-15
No files found.
wb/lib/wb/src/wb_attribute.cpp
View file @
8f5f8a45
...
...
@@ -34,20 +34,15 @@ wb_attribute::wb_attribute(pwr_tStatus sts, wb_orep * orep) :
else
{
m_orep
->
ref
();
// m_size == get rtbody size... Fix
wb_cdef
cdef
(
*
orep
);
if
(
EVEN
(
cdef
.
sts
()))
{
char
msg
[
256
];
m_sts
=
cdef
.
sts
();
sprintf
(
msg
,
"Can't get cdef for orep: %s"
,
orep
->
name
());
throw
wb_error_str
(
m_sts
,
msg
);
return
;
}
wb_bdef
bdef
(((
wb_cdrep
*
)
cdef
)
->
bdrep
(
&
m_sts
,
pwr_eBix_rt
));
if
(
EVEN
(
bdef
.
sts
()))
{
char
msg
[
256
];
m_sts
=
bdef
.
sts
();
sprintf
(
msg
,
"Can't get bdef for orep: %s"
,
orep
->
name
());
throw
wb_error_str
(
m_sts
,
msg
);
return
;
}
m_size
=
bdef
.
size
();
...
...
@@ -117,8 +112,11 @@ wb_attribute::wb_attribute(pwr_tStatus sts, wb_orep* orep, const char *bname) :
if
(
orep
==
0
)
m_sts
=
LDH__NOSUCHATTR
;
else
{
m_orep
->
ref
();
wb_cdrep
*
cd
=
m_orep
->
vrep
()
->
merep
()
->
cdrep
(
&
m_sts
,
m_orep
->
cid
());
if
(
oddSts
())
{
wb_bdrep
*
bd
=
cd
->
bdrep
(
&
m_sts
,
bname
);
if
(
oddSts
())
{
m_size
=
bd
->
size
();
...
...
@@ -127,10 +125,6 @@ wb_attribute::wb_attribute(pwr_tStatus sts, wb_orep* orep, const char *bname) :
}
delete
cd
;
}
if
(
oddSts
())
m_orep
->
ref
();
else
m_orep
=
0
;
}
}
...
...
@@ -141,6 +135,8 @@ wb_attribute::wb_attribute(pwr_tStatus sts, wb_orep* orep, const char *bname, co
if
(
orep
==
0
)
m_sts
=
LDH__NOSUCHATTR
;
else
{
m_orep
->
ref
();
wb_attrname
n
=
wb_attrname
(
aname
);
wb_bdrep
*
bd
=
0
;
wb_cdrep
*
cd
=
m_orep
->
vrep
()
->
merep
()
->
cdrep
(
&
m_sts
,
m_orep
->
cid
());
...
...
@@ -172,10 +168,10 @@ wb_attribute::wb_attribute(pwr_tStatus sts, wb_orep* orep, const char *bname, co
if
(
bd
)
delete
bd
;
}
if
(
oddSts
())
m_orep
->
ref
();
else
m_orep
=
0
;
//
if ( oddSts())
//
m_orep->ref();
//
else
//
m_orep = 0;
}
}
...
...
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