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