Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
git-svn-id: svn://10.0.0.236/trunk@229504 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -60,7 +60,7 @@ nsTSubstring_CharT::nsTSubstring_CharT( char_type *data, size_type length,
|
||||
inline const nsTFixedString_CharT*
|
||||
AsFixedString( const nsTSubstring_CharT* s )
|
||||
{
|
||||
return NS_STATIC_CAST(const nsTFixedString_CharT*, s);
|
||||
return static_cast<const nsTFixedString_CharT*>(s);
|
||||
}
|
||||
|
||||
|
||||
@@ -561,7 +561,7 @@ nsTSubstring_CharT::SetCapacity( size_type capacity )
|
||||
if (capacity == 0)
|
||||
{
|
||||
::ReleaseData(mData, mFlags);
|
||||
mData = NS_CONST_CAST(char_type*, char_traits::sEmptyBuffer);
|
||||
mData = const_cast<char_type*>(char_traits::sEmptyBuffer);
|
||||
mLength = 0;
|
||||
SetDataFlags(F_TERMINATED);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user