We no longer need to hold the editor lock for DataEditor::Replace().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6742 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-02-26 02:00:38 +00:00
parent ee24db11e1
commit 02f331d59c

View File

@ -408,7 +408,6 @@ MimeTypeEditor::DetachedFromWindow()
fEditor.StopWatching(this);
if (fPreviousText != fTextControl->Text()) {
BAutolock locker(fEditor);
fEditor.Replace(0, (const uint8 *)fTextControl->Text(),
strlen(fTextControl->Text()) + 1);
}
@ -420,12 +419,9 @@ MimeTypeEditor::MessageReceived(BMessage *message)
{
switch (message->what) {
case kMsgValueChanged:
{
BAutolock locker(fEditor);
fEditor.Replace(0, (const uint8 *)fTextControl->Text(),
strlen(fTextControl->Text()) + 1);
break;
}
case kMsgDataEditorUpdate:
UpdateText();
@ -689,7 +685,6 @@ NumberEditor::UpdateNumber()
return;
}
BAutolock locker(fEditor);
fEditor.Replace(0, buffer, Size());
}
@ -912,7 +907,6 @@ BooleanEditor::MessageReceived(BMessage *message)
switch (message->what) {
case kMsgValueChanged:
{
BAutolock locker(fEditor);
uint8 boolean = message->FindInt8("value");
fEditor.Replace(0, (const uint8 *)&boolean, 1);
break;