[haiku-commits] r39926 - haiku/trunk/src/apps/soundrecorder

  • From: marcusoverhagen@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 23 Dec 2010 23:54:09 +0100 (CET)

Author: marcusoverhagen
Date: 2010-12-23 23:54:09 +0100 (Thu, 23 Dec 2010)
New Revision: 39926
Changeset: http://dev.haiku-os.org/changeset/39926

Modified:
   haiku/trunk/src/apps/soundrecorder/ScopeView.cpp
   haiku/trunk/src/apps/soundrecorder/ScopeView.h
Log:
The reference should be const


Modified: haiku/trunk/src/apps/soundrecorder/ScopeView.cpp
===================================================================
--- haiku/trunk/src/apps/soundrecorder/ScopeView.cpp    2010-12-23 22:03:08 UTC 
(rev 39925)
+++ haiku/trunk/src/apps/soundrecorder/ScopeView.cpp    2010-12-23 22:54:09 UTC 
(rev 39926)
@@ -258,7 +258,7 @@
 
 
 void
-ScopeView::RenderTrack(BMediaTrack *track, media_format &format)
+ScopeView::RenderTrack(BMediaTrack *track, const media_format &format)
 {
        fMediaTrack = track;
        fPlayFormat = format;

Modified: haiku/trunk/src/apps/soundrecorder/ScopeView.h
===================================================================
--- haiku/trunk/src/apps/soundrecorder/ScopeView.h      2010-12-23 22:03:08 UTC 
(rev 39925)
+++ haiku/trunk/src/apps/soundrecorder/ScopeView.h      2010-12-23 22:54:09 UTC 
(rev 39926)
@@ -25,7 +25,7 @@
        void SetLeftTime(bigtime_t timestamp);
        void SetRightTime(bigtime_t timestamp);
        void SetTotalTime(bigtime_t timestamp, bool reset);
-       void RenderTrack(BMediaTrack *track, media_format &format);
+       void RenderTrack(BMediaTrack *track, const media_format &format);
        void CancelRendering();
        virtual void FrameResized(float width, float height);
        virtual void MouseDown(BPoint position);


Other related posts:

  • » [haiku-commits] r39926 - haiku/trunk/src/apps/soundrecorder - marcusoverhagen