Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wang-bin committed Apr 10, 2024
1 parent 4ae1bc1 commit d049bb4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions BStr.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ class BStr
{
public:
#if (_WIN32 + 0)
using StrTye = BSTR; // WCHAR*: length prefix + data string + 0x0000
using StrType = BSTR; // WCHAR*: length prefix + data string + 0x0000
#elif (__APPLE__ + 0)
using StrTye = CFStringRef;
using StrType = CFStringRef;
#else
using StrTye = char*;
using StrType = char*;
#endif

static std::string to_string(StrTye s) {
static std::string to_string(StrType s) {
if (!s)
return {};
#if (_WIN32 + 0)
Expand Down Expand Up @@ -72,7 +72,7 @@ class BStr
}

// release and get address of. BRawStr is allocated or ref added in GetXXX(BRawStr)
StrTye* operator&() {
StrType* operator&() {
release();
return &s_;
}
Expand All @@ -81,7 +81,7 @@ class BStr
release();
}

StrTye get() {
StrType get() {
return s_;
}

Expand All @@ -102,5 +102,5 @@ class BStr
s_ = {};
}

StrTye s_{};
StrType s_{};
};

0 comments on commit d049bb4

Please sign in to comment.