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
Joao Oliveira
Okular
Commits
8286aac4
Commit
8286aac4
authored
Aug 23, 2011
by
Albert Astals Cid
Browse files
We never use m_spaces, so kill it
parent
917482f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/textpage.cpp
View file @
8286aac4
...
...
@@ -1096,8 +1096,6 @@ void TextPagePrivate::removeSpace()
{
if
((
*
it
)
->
text
()
==
str
)
{
// create new Entity, otherwise there might be possible memory leakage
m_spaces
.
append
(
new
TinyTextEntity
(
(
*
it
)
->
text
(),(
*
it
)
->
area
)
);
delete
*
it
;
it
=
m_words
.
erase
(
it
);
}
...
...
core/textpage_p.h
View file @
8286aac4
...
...
@@ -108,7 +108,6 @@ class TextPagePrivate
// variables those can be accessed directly from TextPage
QMap
<
int
,
RegionText
>
m_word_chars_map
;
RegionTextList
m_XY_cut_tree
;
TextList
m_spaces
;
TextList
m_words
;
QMap
<
int
,
SearchPoint
*
>
m_searchPoints
;
PagePrivate
*
m_page
;
...
...
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