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
f93d2d80
Commit
f93d2d80
authored
Dec 04, 2008
by
Roberto Raggi
Browse files
We don't use the uses, so just ifdef-out the code for now.
parent
908ee0e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
shared/cplusplus/Scope.cpp
View file @
f93d2d80
...
...
@@ -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