From 889d692f77b6d851ff8e067cad0a8a7e025eeea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 27 Feb 2004 21:32:28 +0000 Subject: [PATCH] Added some missing consts. The header will now get the entry_ref from the editor, and not the one passed to the view (because it may have redirected it). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6780 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/diskprobe/ProbeView.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/apps/diskprobe/ProbeView.cpp b/src/apps/diskprobe/ProbeView.cpp index 4f75781bc8..d195e6824e 100644 --- a/src/apps/diskprobe/ProbeView.cpp +++ b/src/apps/diskprobe/ProbeView.cpp @@ -56,7 +56,7 @@ static const uint32 kMsgPageSetup = 'pgsp'; class IconView : public BView { public: - IconView(BRect frame, entry_ref *ref, bool isDevice); + IconView(BRect frame, const entry_ref *ref, bool isDevice); virtual ~IconView(); virtual void AttachedToWindow(); @@ -102,7 +102,7 @@ class PositionSlider : public BSlider { class HeaderView : public BView, public BInvoker { public: - HeaderView(BRect frame, entry_ref *ref, DataEditor &editor); + HeaderView(BRect frame, const entry_ref *ref, DataEditor &editor); virtual ~HeaderView(); virtual void AttachedToWindow(); @@ -188,7 +188,7 @@ get_type_string(char *buffer, size_t bufferSize, type_code type) // #pragma mark - -IconView::IconView(BRect rect, entry_ref *ref, bool isDevice) +IconView::IconView(BRect rect, const entry_ref *ref, bool isDevice) : BView(rect, NULL, B_FOLLOW_NONE, B_WILL_DRAW), fRef(*ref), fIsDevice(isDevice), @@ -397,7 +397,7 @@ PositionSlider::SetBlockSize(uint32 blockSize) // #pragma mark - -HeaderView::HeaderView(BRect frame, entry_ref *ref, DataEditor &editor) +HeaderView::HeaderView(BRect frame, const entry_ref *ref, DataEditor &editor) : BView(frame, "probeHeader", B_FOLLOW_LEFT_RIGHT, B_WILL_DRAW), fAttribute(editor.Attribute()), fFileSize(editor.FileSize()), @@ -893,7 +893,7 @@ ProbeView::ProbeView(BRect rect, entry_ref *ref, const char *attribute, const BM } rect = Bounds(); - fHeaderView = new HeaderView(rect, ref, fEditor); + fHeaderView = new HeaderView(rect, &fEditor.Ref(), fEditor); fHeaderView->ResizeToPreferred(); fHeaderView->SetBase((base_type)baseType); AddChild(fHeaderView);