Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qt-creator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Hunger
qt-creator
Commits
c0506785
Commit
c0506785
authored
15 years ago
by
Christian Kamm
Browse files
Options
Downloads
Patches
Plain Diff
Drop snapshot argument from Bind constructor.
parent
b102690b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/libs/qmljs/qmljsbind.cpp
+2
-3
2 additions, 3 deletions
src/libs/qmljs/qmljsbind.cpp
src/libs/qmljs/qmljsbind.h
+1
-2
1 addition, 2 deletions
src/libs/qmljs/qmljsbind.h
with
3 additions
and
5 deletions
src/libs/qmljs/qmljsbind.cpp
+
2
−
3
View file @
c0506785
...
@@ -168,9 +168,8 @@ protected:
...
@@ -168,9 +168,8 @@ protected:
}
// end of anonymous namespace
}
// end of anonymous namespace
Bind
::
Bind
(
Document
::
Ptr
doc
,
const
Snapshot
&
snapshot
,
Interpreter
::
Engine
*
interp
)
Bind
::
Bind
(
Document
::
Ptr
doc
,
Interpreter
::
Engine
*
interp
)
:
_doc
(
doc
),
:
_doc
(
doc
),
_snapshot
(
snapshot
),
_interp
(
interp
),
_interp
(
interp
),
_currentObjectValue
(
0
),
_currentObjectValue
(
0
),
_typeEnvironment
(
0
),
_typeEnvironment
(
0
),
...
@@ -241,7 +240,7 @@ ObjectValue *Bind::scopeChainAt(Document::Ptr currentDocument, const Snapshot &s
...
@@ -241,7 +240,7 @@ ObjectValue *Bind::scopeChainAt(Document::Ptr currentDocument, const Snapshot &s
QStringList
localImports
;
QStringList
localImports
;
foreach
(
Document
::
Ptr
doc
,
documentByPath
.
values
(
path
))
{
foreach
(
Document
::
Ptr
doc
,
documentByPath
.
values
(
path
))
{
Bind
*
newBind
=
new
Bind
(
doc
,
snapshot
,
interp
);
Bind
*
newBind
=
new
Bind
(
doc
,
interp
);
binds
+=
newBind
;
binds
+=
newBind
;
localImports
+=
newBind
->
localImports
();
localImports
+=
newBind
->
localImports
();
...
...
This diff is collapsed.
Click to expand it.
src/libs/qmljs/qmljsbind.h
+
1
−
2
View file @
c0506785
...
@@ -45,7 +45,7 @@ class Link;
...
@@ -45,7 +45,7 @@ class Link;
class
QMLJS_EXPORT
Bind
:
protected
AST
::
Visitor
class
QMLJS_EXPORT
Bind
:
protected
AST
::
Visitor
{
{
protected:
protected:
Bind
(
Document
::
Ptr
doc
,
const
Snapshot
&
snapshot
,
Interpreter
::
Engine
*
interp
);
Bind
(
Document
::
Ptr
doc
,
Interpreter
::
Engine
*
interp
);
public:
public:
virtual
~
Bind
();
virtual
~
Bind
();
...
@@ -84,7 +84,6 @@ protected:
...
@@ -84,7 +84,6 @@ protected:
private:
private:
Document
::
Ptr
_doc
;
Document
::
Ptr
_doc
;
Snapshot
_snapshot
;
Interpreter
::
Engine
*
_interp
;
Interpreter
::
Engine
*
_interp
;
Interpreter
::
ObjectValue
*
_currentObjectValue
;
Interpreter
::
ObjectValue
*
_currentObjectValue
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment