/src/mozilla-central/dom/media/doctor/DDLogObject.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim:set ts=2 sw=2 sts=2 et cindent: */ |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | #include "DDLogObject.h" |
8 | | |
9 | | namespace mozilla { |
10 | | |
11 | | void |
12 | | DDLogObject::AppendPrintf(nsCString& mString) const |
13 | 0 | { |
14 | 0 | MOZ_ASSERT(mTypeName); |
15 | 0 | mString.AppendPrintf("%s[%p]", mTypeName, mPointer); |
16 | 0 | } |
17 | | |
18 | | nsCString |
19 | | DDLogObject::Printf() const |
20 | 0 | { |
21 | 0 | nsCString s; |
22 | 0 | AppendPrintf(s); |
23 | 0 | return s; |
24 | 0 | } |
25 | | |
26 | | } // namespace mozilla |