Make GetImplementationFlags more useful/extensible by changing the default implementation to return zero rather than returning the flags from the shared buffer handle, and add a constant for one expected future use. b=109571 r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@121733 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -106,11 +106,7 @@ nsAString::GetBufferHandle() const
|
||||
PRUint32
|
||||
nsAString::GetImplementationFlags() const
|
||||
{
|
||||
PRUint32 flags = 0;
|
||||
const shared_buffer_handle_type* handle = GetSharedBufferHandle();
|
||||
if ( handle )
|
||||
flags = handle->GetImplementationFlags();
|
||||
return flags;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -605,11 +601,7 @@ nsACString::GetBufferHandle() const
|
||||
PRUint32
|
||||
nsACString::GetImplementationFlags() const
|
||||
{
|
||||
PRUint32 flags = 0;
|
||||
const shared_buffer_handle_type* handle = GetSharedBufferHandle();
|
||||
if ( handle )
|
||||
flags = handle->GetImplementationFlags();
|
||||
return flags;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user