Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vincent Wei
harfbuzz
Commits
166ae8b0
Commit
166ae8b0
authored
6 years ago
by
Behdad Esfahbod
Browse files
Options
Download
Email Patches
Plain Diff
Remove now unused hb_auto_t<>
parent
56e0fd34
master
arabic-table-x
bot-check
coverity_scan
decltype
inttype-constructors
iter
metrics
test-str-literal-constness
typename-outside-template
var-subset
2.3.1
2.3.0
2.2.0
2.1.3
2.1.2
2.1.1
2.1.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/hb-dsalgs.hh
+0
-20
src/hb-dsalgs.hh
with
0 additions
and
20 deletions
+0
-20
src/hb-dsalgs.hh
View file @
166ae8b0
...
...
@@ -511,26 +511,6 @@ hb_codepoint_parse (const char *s, unsigned int len, int base, hb_codepoint_t *o
}
template
<
typename
Type
>
struct
hb_auto_t
:
Type
{
hb_auto_t
(
void
)
{
Type
::
init
();
}
/* Explicitly allow the following only for pointer and references,
* to avoid any accidental copies.
*
* Apparently if we template for all types, then gcc seems to
* capture a reference argument in the type, but clang doesn't,
* causing unwanted copies and bugs that come with it. Ideally
* we should use C++11-style rvalue reference &&t1. */
template
<
typename
T1
>
explicit
hb_auto_t
(
T1
*
t1
)
{
Type
::
init
(
t1
);
}
template
<
typename
T1
>
explicit
hb_auto_t
(
T1
&
t1
)
{
Type
::
init
(
t1
);
}
~
hb_auto_t
(
void
)
{
Type
::
fini
();
}
private:
/* Hide */
void
init
(
void
)
{}
void
fini
(
void
)
{}
};
struct
hb_bytes_t
{
inline
hb_bytes_t
(
void
)
:
arrayZ
(
nullptr
),
len
(
0
)
{}
...
...
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
Menu
Projects
Groups
Snippets
Help