Dash:
[t2.git] / package / www / seamonkey / no-logging.patch
blob8665bf723d2e040365664c107dc6b0bd15408819
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../seamonkey/no-logging.patch
5 # Copyright (C) 2015 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 From: Chris Double <chris.double@double.co.nz>
18 Bug 1128161 - Fix build error when logging is disabled - r=ajones
21 diff --git a/dom/media/mediasource/MediaSourceUtils.cpp b/dom/media/mediasource/MediaSourceUtils.cpp
22 index 44a40f5..83bba60 100644
23 --- a/mozilla/dom/media/mediasource/MediaSourceUtils.cpp
24 +++ b/mozilla/dom/media/mediasource/MediaSourceUtils.cpp
25 @@ -6,17 +6,16 @@
26 #include "MediaSourceUtils.h"
28 #include "prlog.h"
29 #include "mozilla/dom/TimeRanges.h"
30 #include "nsPrintfCString.h"
32 namespace mozilla {
34 -#if defined(PR_LOGGING)
35 nsCString
36 DumpTimeRanges(dom::TimeRanges* aRanges)
38 nsCString dump;
40 dump = "[";
42 for (uint32_t i = 0; i < aRanges->Length(); ++i) {
43 @@ -26,11 +25,10 @@ DumpTimeRanges(dom::TimeRanges* aRanges)
44 ErrorResult dummy;
45 dump += nsPrintfCString("(%f, %f)", aRanges->Start(i, dummy), aRanges->End(i, dummy));
48 dump += "]";
50 return dump;
52 -#endif
54 } // namespace mozilla