Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
a9dcbfe2
Commit
a9dcbfe2
authored
Oct 21, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed refcounting bug in new string implementation
parent
9323ae47
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
803 deletions
+15
-803
qcstring.h
qtools/qcstring.h
+15
-12
rcstring.h
qtools/rcstring.h
+0
-791
No files found.
qtools/qcstring.h
View file @
a9dcbfe2
...
...
@@ -498,19 +498,22 @@ public:
}
StringRep
&
operator
=
(
const
StringRep
&
s
)
{
if
(
!
u
.
s
.
isShort
)
{
u
.
l
.
d
->
dispose
();
}
if
(
s
.
u
.
s
.
isShort
)
// copy by value
{
u
.
s
=
s
.
u
.
s
;
}
else
// copy by reference
if
(
&
s
!=
this
)
{
u
.
l
.
isShort
=
FALSE
;
u
.
l
.
d
=
s
.
u
.
l
.
d
;
u
.
l
.
d
->
refCount
++
;
if
(
!
u
.
s
.
isShort
)
{
u
.
l
.
d
->
dispose
();
}
if
(
s
.
u
.
s
.
isShort
)
// copy by value
{
u
.
s
=
s
.
u
.
s
;
}
else
// copy by reference
{
u
.
l
.
isShort
=
FALSE
;
u
.
l
.
d
=
s
.
u
.
l
.
d
;
u
.
l
.
d
->
refCount
++
;
}
}
return
*
this
;
}
...
...
qtools/rcstring.h
deleted
100644 → 0
View file @
9323ae47
This diff is collapsed.
Click to expand it.
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