Commits

Anonymous committed 5a66b92

0 check

svn path=/trunk/kdelibs/interfaces/ktexteditor/; revision=157901

Comments (0)

Files changed (21)

ktexteditor/blockselectioninterface.cpp

 }
 
 BlockSelectionInterface *KTextEditor::blockSelectionInterface (Document *doc)
-{
+{                                              
+  if (!doc)
+    return 0;
+
   return static_cast<BlockSelectionInterface*>(doc->qt_cast("KTextEditor::BlockSelectionInterface"));
 }

ktexteditor/clipboardinterface.cpp

 }
 
 ClipboardInterface *KTextEditor::clipboardInterface (View *view)
-{
+{                                    
+  if (!view)
+    return 0;
+
   return static_cast<ClipboardInterface*>(view->qt_cast("KTextEditor::ClipboardInterface"));
 }

ktexteditor/codecompletioninterface.cpp

 }
 
 CodeCompletionInterface *KTextEditor::codeCompletionInterface (View *view)
-{
+{                
+  if (!view)
+    return 0;
+
   return static_cast<CodeCompletionInterface*>(view->qt_cast("KTextEditor::CodeCompletionInterface"));
 }
 

ktexteditor/configinterface.cpp

 }
 
 ConfigInterface *KTextEditor::configInterface (Document *doc)
-{
+{                       
+  if (!doc)
+    return 0;
+
   return static_cast<ConfigInterface*>(doc->qt_cast("KTextEditor::ConfigInterface"));
 }

ktexteditor/configinterfaceextension.cpp

 }
 
 ConfigInterfaceExtension *KTextEditor::configInterfaceExtension (Document *doc)
-{
+{           
+  if (!doc)
+    return 0;
+
   return static_cast<ConfigInterfaceExtension*>(doc->qt_cast("KTextEditor::ConfigInterfaceExtension"));
 }

ktexteditor/cursorinterface.cpp

 }
 
 CursorInterface *KTextEditor::cursorInterface (Document *doc)
-{
+{               
+  if (!doc)
+    return 0;
+
   return static_cast<CursorInterface*>(doc->qt_cast("KTextEditor::CursorInterface"));
 }

ktexteditor/dynwordwrapinterface.cpp

 }
 
 DynWordWrapInterface *KTextEditor::dynWordWrapInterface (View *view)
-{
+{           
+  if (!view)
+    return 0;
+
   return static_cast<DynWordWrapInterface*>(view->qt_cast("KTextEditor::DynWordWrapInterface"));
 }

ktexteditor/editinterface.cpp

 }
 
 EditInterface *KTextEditor::editInterface (Document *doc)
-{
+{                    
+  if (!doc)
+    return 0;
+
   return static_cast<EditInterface*>(doc->qt_cast("KTextEditor::EditInterface"));
 }
-         
+         

ktexteditor/encodinginterface.cpp

 }
 
 EncodingInterface *KTextEditor::encodingInterface (Document *doc)
-{
+{         
+  if (!doc)
+    return 0;
+
   return static_cast<EncodingInterface*>(doc->qt_cast("KTextEditor::EncodingInterface"));
 }

ktexteditor/highlightinginterface.cpp

 }
 
 HighlightingInterface *KTextEditor::highlightingInterface (Document *doc)
-{
+{       
+  if (!doc)
+    return 0;
+
   return static_cast<HighlightingInterface*>(doc->qt_cast("KTextEditor::HighlightingInterface"));
 }

ktexteditor/markinterface.cpp

 }
 
 MarkInterface *KTextEditor::markInterface (Document *doc)
-{
+{                                 
+  if (!doc)
+    return 0;
+
   return static_cast<MarkInterface*>(doc->qt_cast("KTextEditor::MarkInterface"));
 }

ktexteditor/markinterfaceextension.cpp

 }
 
 MarkInterfaceExtension *KTextEditor::markInterfaceExtension (Document *doc)
-{
+{                   
+  if (!doc)
+    return 0;
+
   return static_cast<MarkInterfaceExtension*>(doc->qt_cast("KTextEditor::MarkInterfaceExtension"));
 }

ktexteditor/popupmenuinterface.cpp

 }
 
 PopupMenuInterface *KTextEditor::popupMenuInterface (View *view)
-{
+{        
+  if (!view)
+    return 0;
+
   return static_cast<PopupMenuInterface*>(view->qt_cast("KTextEditor::PopupMenuInterface"));
 }

ktexteditor/printinterface.cpp

 }
 
 PrintInterface *KTextEditor::printInterface (Document *doc)
-{
+{           
+  if (!doc)
+    return 0;
+
   return static_cast<PrintInterface*>(doc->qt_cast("KTextEditor::PrintInterface"));
 }

ktexteditor/searchinterface.cpp

 }
 
 SearchInterface *KTextEditor::searchInterface (Document *doc)
-{
+{  
+  if (!doc)
+    return 0;
+
   return static_cast<SearchInterface*>(doc->qt_cast("KTextEditor::SearchInterface"));
 }

ktexteditor/selectioninterface.cpp

 
 SelectionInterface *KTextEditor::selectionInterface (Document *doc)
 {
+  if (!doc)
+    return 0;
+
   return static_cast<SelectionInterface*>(doc->qt_cast("KTextEditor::SelectionInterface"));
 }

ktexteditor/undointerface.cpp

 }
 
 UndoInterface *KTextEditor::undoInterface (Document *doc)
-{
+{  
+  if (!doc)
+    return 0;
+
   return static_cast<UndoInterface*>(doc->qt_cast("KTextEditor::UndoInterface"));
 }

ktexteditor/viewconfiginterface.cpp

 }
 
 ViewConfigInterface *KTextEditor::viewConfigInterface (View *view)
-{
+{                   
+  if (!view)
+    return 0;
+
   return static_cast<ViewConfigInterface*>(view->qt_cast("KTextEditor::ViewConfigInterface"));
 }

ktexteditor/viewcursorinterface.cpp

 }
 
 ViewCursorInterface *KTextEditor::viewCursorInterface (View *view)
-{
+{                   
+  if (!view)
+    return 0;
+
   return static_cast<ViewCursorInterface*>(view->qt_cast("KTextEditor::ViewCursorInterface"));
 }

ktexteditor/viewstatusmsginterface.cpp

 }
 
 ViewStatusMsgInterface *KTextEditor::viewStatusMsgInterface (View *view)
-{
+{           
+  if (!view)
+    return 0;
+
   return static_cast<ViewStatusMsgInterface*>(view->qt_cast("KTextEditor::ViewStatusMsgInterface"));
 }

ktexteditor/wordwrapinterface.cpp

 }
   
 WordWrapInterface *KTextEditor::wordWrapInterface (Document *doc)
-{
+{          
+  if (!doc)
+    return 0;
+
   return static_cast<WordWrapInterface*>(doc->qt_cast("KTextEditor::WordWrapInterface"));
 }