Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
7b9983e5
Commit
7b9983e5
authored
Dec 04, 2008
by
Patrick Star
Browse files
Merge branch '0.9.1-beta' of git@scm.dev.nokia.troll.no:creator/mainline into beta
parents
c37f4d05
f93d2d80
Changes
1
Hide whitespace changes
Inline
Side-by-side
shared/cplusplus/Scope.cpp
View file @
7b9983e5
...
...
@@ -292,6 +292,7 @@ Use *Scope::useAt(unsigned index) const
void
Scope
::
addUse
(
unsigned
sourceOffset
,
Name
*
name
)
{
#ifdef CPLUSPLUS_WITH_USES
if
(
++
_useCount
==
_allocatedUses
)
{
_allocatedUses
+=
4
;
_uses
=
reinterpret_cast
<
Use
*>
(
realloc
(
_uses
,
_allocatedUses
*
sizeof
(
Use
)));
...
...
@@ -303,6 +304,7 @@ void Scope::addUse(unsigned sourceOffset, Name *name)
else
lastVisibleSymbol
=
_symbols
[
_symbolCount
];
_uses
[
_useCount
].
init
(
sourceOffset
,
name
,
lastVisibleSymbol
);
#endif
}
CPLUSPLUS_END_NAMESPACE
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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