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
f5dee24f
Commit
f5dee24f
authored
Oct 26, 2007
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check that casted class exist before inserting it
parent
8894ef92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
wb/lib/wb/src/wb_dbs.cpp
wb/lib/wb/src/wb_dbs.cpp
+15
-5
No files found.
wb/lib/wb/src/wb_dbs.cpp
View file @
f5dee24f
/*
* Proview $Id: wb_dbs.cpp,v 1.2
7 2007-02-08 12:45:07
claes Exp $
* Proview $Id: wb_dbs.cpp,v 1.2
8 2007-10-26 06:26:52
claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB.
*
* This program is free software; you can redistribute it and/or
...
...
@@ -1064,8 +1064,13 @@ wb_dbs::cidInsert(pwr_tStatus *sts, pwr_tCid cid, pwr_sAttrRef *arp, sCentry **c
wb_attribute
a
=
v
.
attribute
(
&
cast_aref
);
if
(
a
)
{
a
.
value
(
&
cast_cid
);
if
(
cast_cid
!=
pwr_cNCid
)
cidInsert
(
&
lsts
,
cast_cid
,
0
,
&
entry
);
if
(
cast_cid
!=
pwr_cNCid
)
{
wb_cdef
cd
=
v
.
cdef
(
cast_cid
);
if
(
cd
)
cidInsert
(
&
lsts
,
cast_cid
,
0
,
&
entry
);
else
printf
(
"** Invalid cast class %s
\n
"
,
cdh_ObjidToString
(
0
,
aref
.
Objid
,
1
));
}
}
}
}
...
...
@@ -1094,8 +1099,13 @@ wb_dbs::cidInsert(pwr_tStatus *sts, pwr_tCid cid, pwr_sAttrRef *arp, sCentry **c
wb_attribute
a
=
v
.
attribute
(
&
cast_aref
);
if
(
a
)
{
a
.
value
(
&
cast_cid
);
if
(
cast_cid
!=
pwr_cNCid
)
cidInsert
(
&
lsts
,
cast_cid
,
0
,
&
entry
);
if
(
cast_cid
!=
pwr_cNCid
)
{
wb_cdef
cd
=
v
.
cdef
(
cast_cid
);
if
(
cd
)
cidInsert
(
&
lsts
,
cast_cid
,
0
,
&
entry
);
else
printf
(
"** Invalid cast class %s
\n
"
,
cdh_ObjidToString
(
0
,
aref
.
Objid
,
1
));
}
}
}
}
...
...
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