Bug 1407458 - Use nsString for Observation filenames. r=erahm.
This avoids some unnecessary string copying.
This commit is contained in:
@@ -39,10 +39,7 @@ struct ObservationWithStack
|
||||
, mStack(aStack)
|
||||
#endif
|
||||
{
|
||||
const char16_t* filename = aObs.Filename();
|
||||
if (filename) {
|
||||
mFilename = filename;
|
||||
}
|
||||
aObs.Filename(mFilename);
|
||||
}
|
||||
|
||||
mozilla::IOInterposeObserver::Observation mObservation;
|
||||
|
||||
Reference in New Issue
Block a user