Bug 798355 - Remove the base class conversion operator from MachMsgPortDescriptor because it will never be used; r=cjones
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 05 Oct 2012 16:16:33 -0400
changeset 109452 747ca210aaa08de3ce0ffd921d3e53b194da1183
parent 109451 82f88f349519207bca3adae03214224ebb5c3b19
child 109453 1ddc6403c0603eb86e608805561ac5f3bc587023
push id23630
push useremorley@mozilla.com
push dateSat, 06 Oct 2012 19:35:27 +0000
treeherdermozilla-central@9f677c2bb33d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscjones
bugs798355
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 798355 - Remove the base class conversion operator from MachMsgPortDescriptor because it will never be used; r=cjones
ipc/chromium/src/chrome/common/mach_ipc_mac.h
--- a/ipc/chromium/src/chrome/common/mach_ipc_mac.h
+++ b/ipc/chromium/src/chrome/common/mach_ipc_mac.h
@@ -106,22 +106,16 @@ class MachMsgPortDescriptor : public mac
   mach_port_t GetMachPort() const {
     return name;
   }
 
   mach_msg_type_name_t GetDisposition() const {
     return disposition;
   }
 
-  // We're just a simple wrapper for mach_msg_port_descriptor_t
-  // and have the same memory layout
-  operator mach_msg_port_descriptor_t&() {
-    return *this;
-  }
-
   // For convenience
   operator mach_port_t() const {
     return GetMachPort();
   }
 };
 
 //==============================================================================
 // MachMessage: a wrapper for a mach message