From 02f331d59cc3da01f37bbfe32cb13b16da7a8496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 26 Feb 2004 02:00:38 +0000 Subject: [PATCH] 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 --- src/apps/diskprobe/AttributeWindow.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/apps/diskprobe/AttributeWindow.cpp b/src/apps/diskprobe/AttributeWindow.cpp index 97ec5ac6b0..bec004700c 100644 --- a/src/apps/diskprobe/AttributeWindow.cpp +++ b/src/apps/diskprobe/AttributeWindow.cpp @@ -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;