Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
dfcfeeb5
Commit
dfcfeeb5
authored
Mar 03, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/Traits: use std::char_traits
parent
820debf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Traits.hxx
src/fs/Traits.hxx
+6
-4
No files found.
src/fs/Traits.hxx
View file @
dfcfeeb5
...
...
@@ -37,7 +37,8 @@
*/
struct
PathTraitsFS
{
typedef
std
::
string
string
;
typedef
char
value_type
;
typedef
string
::
traits_type
char_traits
;
typedef
char_traits
::
char_type
value_type
;
typedef
value_type
*
pointer
;
typedef
const
value_type
*
const_pointer
;
...
...
@@ -97,7 +98,7 @@ struct PathTraitsFS {
gcc_pure
gcc_nonnull_all
static
size_t
GetLength
(
const_pointer
p
)
{
return
strlen
(
p
);
return
char_traits
::
length
(
p
);
}
/**
...
...
@@ -145,7 +146,8 @@ struct PathTraitsFS {
*/
struct
PathTraitsUTF8
{
typedef
std
::
string
string
;
typedef
char
value_type
;
typedef
string
::
traits_type
char_traits
;
typedef
char_traits
::
char_type
value_type
;
typedef
value_type
*
pointer
;
typedef
const
value_type
*
const_pointer
;
...
...
@@ -190,7 +192,7 @@ struct PathTraitsUTF8 {
gcc_pure
gcc_nonnull_all
static
size_t
GetLength
(
const_pointer
p
)
{
return
strlen
(
p
);
return
char_traits
::
length
(
p
);
}
/**
...
...
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