Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
KDE Libraries
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
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
Unmaintained
KDE Libraries
Commits
4df4d1cf
Commit
4df4d1cf
authored
Dec 05, 2001
by
David Faure
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Speedup: don't create a DocumentImpl and delete it right away (copy ctor and operator=)
svn path=/trunk/kdelibs/; revision=125643
parent
7217bec3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
khtml/dom/html_document.cpp
khtml/dom/html_document.cpp
+1
-2
khtml/dom/html_document.h
khtml/dom/html_document.h
+1
-1
No files found.
khtml/dom/html_document.cpp
View file @
4df4d1cf
...
...
@@ -71,8 +71,7 @@ HTMLDocument &HTMLDocument::operator = (const Node &other)
impl
=
0
;
return
*
this
;
}
Document
d
;
d
=
other
;
Document
d
(
other
);
if
(
!
d
.
isHTMLDocument
())
impl
=
0
;
else
...
...
khtml/dom/html_document.h
View file @
4df4d1cf
...
...
@@ -82,7 +82,7 @@ public:
*/
HTMLDocument
(
KHTMLView
*
parent
);
HTMLDocument
(
const
HTMLDocument
&
other
);
HTMLDocument
(
const
Node
&
other
)
:
Document
()
HTMLDocument
(
const
Node
&
other
)
:
Document
(
false
)
{(
*
this
)
=
other
;}
protected:
HTMLDocument
(
HTMLDocumentImpl
*
impl
);
...
...
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