Index: /trunk/Makefile.kmk
===================================================================
--- /trunk/Makefile.kmk	(revision 29928)
+++ /trunk/Makefile.kmk	(revision 29929)
@@ -1119,4 +1119,5 @@
 	$(RM) -f -- $@ $@.tmp $@.tmp2 $@.tmp3
 	$(APPEND) $@.tmp '// autogenerated'
+	@$(APPEND) $@.tmp '#define IN_SLICKEDIT '
 	@$(APPEND) $@.tmp '#define RT_C_DECLS_BEGIN '
 	@$(APPEND) $@.tmp '#define RT_C_DECLS_END '
Index: /trunk/include/VBox/com/ptr.h
===================================================================
--- /trunk/include/VBox/com/ptr.h	(revision 29928)
+++ /trunk/include/VBox/com/ptr.h	(revision 29929)
@@ -226,4 +226,5 @@
      *  pointer).
      */
+#ifndef IN_SLICKEDIT
     NoAddRefRelease<C>* operator->() const
     {
@@ -231,4 +232,7 @@
         return (NoAddRefRelease<C>*)p;
     }
+#else  /* IN_SLICKEDIT - The editor doesn't quite grok the above magic, sorry about the mess. */
+    C *operator->() const { return this->p; }
+#endif
 
     template <class I>
@@ -491,4 +495,8 @@
         return *this;
     }
+
+#ifdef IN_SLICKEDIT /* Doesn't fully grok the stuff otherwise, sorry for the bloat. */
+    C *operator->() const { return this->p; }
+#endif
 
     /**
