diff options
| author | Vincent Richard <[email protected]> | 2013-12-10 07:52:51 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2013-12-10 07:52:51 +0000 |
| commit | 7e265b05f440ed81b80f2de496c9d13221a69fe0 (patch) | |
| tree | d4dad210715ea9d60b2136bd416647d4bc02166a /src/base.cpp | |
| parent | Enforce strict aliasing rule and avoid alignment issues. (diff) | |
| download | vmime-7e265b05f440ed81b80f2de496c9d13221a69fe0.tar.gz vmime-7e265b05f440ed81b80f2de496c9d13221a69fe0.zip | |
Simplified types for better readability. Use appropriate types (size_t, byte_t...). Minor warning fixes.
Diffstat (limited to 'src/base.cpp')
| -rw-r--r-- | src/base.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/base.cpp b/src/base.cpp index f7985376..9f9a87be 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -86,7 +86,7 @@ const string libapi() { return (VMIME_API); } // New line sequence to be used when folding header fields. const string NEW_LINE_SEQUENCE = "\r\n "; -const string::size_type NEW_LINE_SEQUENCE_LENGTH = 1; // space +const size_t NEW_LINE_SEQUENCE_LENGTH = 1; // space /** The CR-LF sequence. */ @@ -110,10 +110,13 @@ nullPtrType null; // Line length limits namespace lineLengthLimits { - const string::size_type infinite = std::numeric_limits <string::size_type>::max(); + const size_t infinite = std::numeric_limits <size_t>::max(); } +const size_t npos = std::numeric_limits <size_t>::max(); + + #ifndef VMIME_BUILDING_DOC |
