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:
dbaron%fas.harvard.edu
2002-05-17 02:53:34 +00:00
parent d01d5ea51f
commit c53c56f3f7
4 changed files with 36 additions and 24 deletions

View File

@@ -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;
}