summaryrefslogtreecommitdiffstats
path: root/basctl
diff options
context:
space:
mode:
authorAleksas Pantechovskis <alex.pantec@gmail.com>2016-03-03 15:43:51 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-04 06:40:33 +0000
commit57d0caacee2f395be2e89b78f8ece2d47b2c8683 (patch)
tree5d51c927ad91433c6f76e7a7edb8bb561bfec026 /basctl
parentloplugin:unuseddefaultparams in vcl and xmloff (diff)
downloadcore-57d0caacee2f395be2e89b78f8ece2d47b2c8683.tar.gz
core-57d0caacee2f395be2e89b78f8ece2d47b2c8683.zip
tdf#96505 Remove long integer literal specifier when not needed
Remove L from integer literals if it does not produce warnings and does not change semantics Change-Id: I9573a47d3e3401993a1f0fbcf7df4be20f9e6eba Reviewed-on: https://gerrit.libreoffice.org/22867 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basicbox.cxx2
-rw-r--r--basctl/source/basicide/bastype2.cxx2
-rw-r--r--basctl/source/basicide/bastypes.cxx2
-rw-r--r--basctl/source/basicide/macrodlg.cxx6
-rw-r--r--basctl/source/basicide/moduldl2.cxx6
-rw-r--r--basctl/source/basicide/moduldlg.cxx16
6 files changed, 17 insertions, 17 deletions
diff --git a/basctl/source/basicide/basicbox.cxx b/basctl/source/basicide/basicbox.cxx
index cc7c5cb68840..847a1a072d7e 100644
--- a/basctl/source/basicide/basicbox.cxx
+++ b/basctl/source/basicide/basicbox.cxx
@@ -311,7 +311,7 @@ void LibBox::NotifyIDE()
if (SfxDispatcher* pDispatcher = GetDispatcher())
pDispatcher->Execute(
SID_BASICIDE_LIBSELECTED,
- SfxCallMode::SYNCHRON, &aDocumentItem, &aLibNameItem, 0L
+ SfxCallMode::SYNCHRON, &aDocumentItem, &aLibNameItem, 0
);
}
ReleaseFocus();
diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx
index 30fa79236e18..288d7edca1da 100644
--- a/basctl/source/basicide/bastype2.cxx
+++ b/basctl/source/basicide/bastype2.cxx
@@ -932,7 +932,7 @@ bool TreeListBox::OpenCurrent()
);
pDispatcher->Execute(
SID_BASICIDE_SHOWSBX,
- SfxCallMode::SYNCHRON, &aSbxItem, 0L
+ SfxCallMode::SYNCHRON, &aSbxItem, 0
);
return true;
}
diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx
index f911713648ef..01e0b6db29eb 100644
--- a/basctl/source/basicide/bastypes.cxx
+++ b/basctl/source/basicide/bastypes.cxx
@@ -555,7 +555,7 @@ void TabBar::EndRenaming()
SfxStringItem aNewName( SID_BASICIDE_ARG_MODULENAME, GetEditText() );
if (SfxDispatcher* pDispatcher = GetDispatcher())
pDispatcher->Execute( SID_BASICIDE_NAMECHANGEDONTAB,
- SfxCallMode::SYNCHRON, &aID, &aNewName, 0L );
+ SfxCallMode::SYNCHRON, &aID, &aNewName, 0 );
}
}
diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx
index e2affdcb10cb..c4a5fa403344 100644
--- a/basctl/source/basicide/macrodlg.cxx
+++ b/basctl/source/basicide/macrodlg.cxx
@@ -678,7 +678,7 @@ IMPL_LINK_TYPED( MacroChooser, ButtonHdl, Button *, pButton, void )
SfxGetpApp()->ExecuteSlot( aRequest );
if (SfxDispatcher* pDispatcher = GetDispatcher())
- pDispatcher->Execute( SID_BASICIDE_EDITMACRO, SfxCallMode::ASYNCHRON, &aInfoItem, 0L );
+ pDispatcher->Execute( SID_BASICIDE_EDITMACRO, SfxCallMode::ASYNCHRON, &aInfoItem, 0 );
EndDialog(Macro_Edit);
}
else
@@ -688,7 +688,7 @@ IMPL_LINK_TYPED( MacroChooser, ButtonHdl, Button *, pButton, void )
DeleteMacro();
if (SfxDispatcher* pDispatcher = GetDispatcher())
pDispatcher->Execute( SID_BASICIDE_UPDATEMODULESOURCE,
- SfxCallMode::SYNCHRON, &aInfoItem, 0L );
+ SfxCallMode::SYNCHRON, &aInfoItem, 0 );
CheckButtons();
UpdateFields();
//if ( m_pMacroBox->GetCurEntry() ) // OV-Bug ?
@@ -714,7 +714,7 @@ IMPL_LINK_TYPED( MacroChooser, ButtonHdl, Button *, pButton, void )
SfxGetpApp()->ExecuteSlot( aRequest );
if (SfxDispatcher* pDispatcher = GetDispatcher())
- pDispatcher->Execute( SID_BASICIDE_EDITMACRO, SfxCallMode::ASYNCHRON, &aInfoItem, 0L );
+ pDispatcher->Execute( SID_BASICIDE_EDITMACRO, SfxCallMode::ASYNCHRON, &aInfoItem, 0 );
StoreMacroDescription();
EndDialog(Macro_New);
}
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx
index 37cabb5b7db4..64e45e22f6cf 100644
--- a/basctl/source/basicide/moduldl2.cxx
+++ b/basctl/source/basicide/moduldl2.cxx
@@ -632,7 +632,7 @@ IMPL_LINK_TYPED( LibPage, ButtonHdl, Button *, pButton, void )
SfxStringItem aLibNameItem( SID_BASICIDE_ARG_LIBNAME, aLibName );
if (SfxDispatcher* pDispatcher = GetDispatcher())
pDispatcher->Execute( SID_BASICIDE_LIBSELECTED,
- SfxCallMode::ASYNCHRON, &aDocItem, &aLibNameItem, 0L );
+ SfxCallMode::ASYNCHRON, &aDocItem, &aLibNameItem, 0 );
EndTabDialog( 1 );
return;
}
@@ -1356,7 +1356,7 @@ void LibPage::DeleteCurrent()
SfxStringItem aLibNameItem( SID_BASICIDE_ARG_LIBNAME, aLibName );
if (SfxDispatcher* pDispatcher = GetDispatcher())
pDispatcher->Execute( SID_BASICIDE_LIBREMOVED,
- SfxCallMode::SYNCHRON, &aDocItem, &aLibNameItem, 0L );
+ SfxCallMode::SYNCHRON, &aDocItem, &aLibNameItem, 0 );
// remove library from module and dialog library containers
if ( xModLibContainer.is() && xModLibContainer->hasByName( aOULibName ) )
@@ -1535,7 +1535,7 @@ void createLibImpl( vcl::Window* pWin, const ScriptDocument& rDocument,
SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, rDocument, aLibName, aModName, TYPE_MODULE );
if (SfxDispatcher* pDispatcher = GetDispatcher())
pDispatcher->Execute( SID_BASICIDE_SBXINSERTED,
- SfxCallMode::SYNCHRON, &aSbxItem, 0L );
+ SfxCallMode::SYNCHRON, &aSbxItem, 0 );
if( pBasicBox )
{
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx
index 894613d2d9b0..1285300f9ac5 100644
--- a/basctl/source/basicide/moduldlg.cxx
+++ b/basctl/source/basicide/moduldlg.cxx
@@ -122,7 +122,7 @@ bool ExtTreeListBox::EditedEntry( SvTreeListEntry* pEntry, const OUString& rNewT
{
SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, aDocument, aLibName, rNewText, ConvertType( eType ) );
pDispatcher->Execute( SID_BASICIDE_SBXRENAMED,
- SfxCallMode::SYNCHRON, &aSbxItem, 0L );
+ SfxCallMode::SYNCHRON, &aSbxItem, 0 );
}
// OV-Bug?!
@@ -355,7 +355,7 @@ TriState ExtTreeListBox::NotifyCopyingMoving( SvTreeListEntry* pTarget, SvTreeLi
{
SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, rSourceDoc, aSourceLibName, aSourceName, ConvertType( eType ) );
pDispatcher->Execute( SID_BASICIDE_SBXDELETED,
- SfxCallMode::SYNCHRON, &aSbxItem, 0L );
+ SfxCallMode::SYNCHRON, &aSbxItem, 0 );
}
}
@@ -447,7 +447,7 @@ TriState ExtTreeListBox::NotifyCopyingMoving( SvTreeListEntry* pTarget, SvTreeLi
{
SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, rDestDoc, aDestLibName, aSourceName, ConvertType( eType ) );
pDispatcher->Execute( SID_BASICIDE_SBXINSERTED,
- SfxCallMode::SYNCHRON, &aSbxItem, 0L );
+ SfxCallMode::SYNCHRON, &aSbxItem, 0 );
}
}
@@ -717,7 +717,7 @@ IMPL_LINK_TYPED( ObjectPage, ButtonHdl, Button *, pButton, void )
}
SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, aDesc.GetDocument(), aDesc.GetLibName(),
aModName, TreeListBox::ConvertType( aDesc.GetType() ) );
- pDispatcher->Execute( SID_BASICIDE_SHOWSBX, SfxCallMode::SYNCHRON, &aSbxItem, 0L );
+ pDispatcher->Execute( SID_BASICIDE_SHOWSBX, SfxCallMode::SYNCHRON, &aSbxItem, 0 );
}
}
else // Nur Lib selektiert
@@ -736,7 +736,7 @@ IMPL_LINK_TYPED( ObjectPage, ButtonHdl, Button *, pButton, void )
SfxStringItem aLibNameItem( SID_BASICIDE_ARG_LIBNAME, aLibName );
if ( pDispatcher )
{
- pDispatcher->Execute( SID_BASICIDE_LIBSELECTED, SfxCallMode::ASYNCHRON, &aDocItem, &aLibNameItem, 0L );
+ pDispatcher->Execute( SID_BASICIDE_LIBSELECTED, SfxCallMode::ASYNCHRON, &aDocItem, &aLibNameItem, 0 );
}
}
EndTabDialog( 1 );
@@ -842,7 +842,7 @@ void ObjectPage::NewDialog()
SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, aDocument, aLibName, aDlgName, TYPE_DIALOG );
if (SfxDispatcher* pDispatcher = GetDispatcher())
pDispatcher->Execute( SID_BASICIDE_SBXINSERTED,
- SfxCallMode::SYNCHRON, &aSbxItem, 0L );
+ SfxCallMode::SYNCHRON, &aSbxItem, 0 );
LibraryLocation eLocation = aDocument.getLibraryLocation( aLibName );
SvTreeListEntry* pRootEntry = m_pBasicBox->FindRootEntry( aDocument, eLocation );
if ( pRootEntry )
@@ -897,7 +897,7 @@ void ObjectPage::DeleteCurrent()
{
SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, aDocument, aLibName, aName, TreeListBox::ConvertType( eType ) );
pDispatcher->Execute( SID_BASICIDE_SBXDELETED,
- SfxCallMode::SYNCHRON, &aSbxItem, 0L );
+ SfxCallMode::SYNCHRON, &aSbxItem, 0 );
}
try
@@ -999,7 +999,7 @@ SbModule* createModImpl( vcl::Window* pWin, const ScriptDocument& rDocument,
SbxItem aSbxItem( SID_BASICIDE_ARG_SBX, rDocument, aLibName, aModName, TYPE_MODULE );
if (SfxDispatcher* pDispatcher = GetDispatcher())
pDispatcher->Execute( SID_BASICIDE_SBXINSERTED,
- SfxCallMode::SYNCHRON, &aSbxItem, 0L );
+ SfxCallMode::SYNCHRON, &aSbxItem, 0 );
LibraryLocation eLocation = rDocument.getLibraryLocation( aLibName );
SvTreeListEntry* pRootEntry = rBasicBox.FindRootEntry( rDocument, eLocation );
if ( pRootEntry )