loplugin:unusedfields
Change-Id: If05b87f1e6c19b15b03b2695921a582e078d0f1a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175011 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
This commit is contained in:
parent
49c0e81e7d
commit
44bb2c8287
12 changed files with 3 additions and 26 deletions
|
@ -123,7 +123,6 @@ class OWriteImagesDocumentHandler final
|
|||
|
||||
const ImageItemDescriptorList& m_rImageItemList;
|
||||
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xWriteDocumentHandler;
|
||||
rtl::Reference< ::comphelper::AttributeList > m_xEmptyList;
|
||||
OUString m_aXMLImageNS;
|
||||
OUString m_aAttributeXlinkType;
|
||||
OUString m_aAttributeValueSimple;
|
||||
|
|
|
@ -124,7 +124,6 @@ class OWriteStatusBarDocumentHandler final
|
|||
|
||||
css::uno::Reference< css::container::XIndexAccess > m_aStatusBarItems;
|
||||
css::uno::Reference< css::xml::sax::XDocumentHandler > m_xWriteDocumentHandler;
|
||||
rtl::Reference< comphelper::AttributeList > m_xEmptyList;
|
||||
OUString m_aXMLStatusBarNS;
|
||||
OUString m_aXMLXlinkNS;
|
||||
OUString m_aAttributeURL;
|
||||
|
|
|
@ -453,7 +453,6 @@ OWriteStatusBarDocumentHandler::OWriteStatusBarDocumentHandler(
|
|||
m_aStatusBarItems( aStatusBarItems ),
|
||||
m_xWriteDocumentHandler( rWriteDocumentHandler )
|
||||
{
|
||||
m_xEmptyList = new ::comphelper::AttributeList;
|
||||
m_aXMLXlinkNS = XMLNS_XLINK_PREFIX;
|
||||
m_aXMLStatusBarNS = XMLNS_STATUSBAR_PREFIX;
|
||||
}
|
||||
|
|
|
@ -285,7 +285,6 @@ OWriteImagesDocumentHandler::OWriteImagesDocumentHandler(
|
|||
m_rImageItemList( rItems ),
|
||||
m_xWriteDocumentHandler( rWriteDocumentHandler )
|
||||
{
|
||||
m_xEmptyList = new ::comphelper::AttributeList;
|
||||
m_aXMLImageNS = XMLNS_IMAGE_PREFIX;
|
||||
m_aAttributeXlinkType = ATTRIBUTE_XLINK_TYPE;
|
||||
m_aAttributeValueSimple = ATTRIBUTE_XLINK_TYPE_VALUE;
|
||||
|
|
|
@ -55,8 +55,8 @@ class UNLESS_MERGELIBS(DLLPUBLIC_PACKAGE) InflaterBytes final
|
|||
{
|
||||
typedef struct z_stream_s z_stream;
|
||||
|
||||
bool bFinished, bNeedDict;
|
||||
sal_Int32 nOffset, nLength, nLastInflateError;
|
||||
bool bFinished;
|
||||
sal_Int32 nOffset, nLength;
|
||||
std::unique_ptr<z_stream> pStream;
|
||||
const sal_Int8* sInBuffer;
|
||||
sal_Int32 doInflateBytes (sal_Int8* pOutBuffer, sal_Int32 nNewOffset, sal_Int32 nNewLength);
|
||||
|
|
|
@ -103,7 +103,6 @@ private:
|
|||
typedef ::std::function<void (const OUString& rsDeckId)> DeckActivationFunctor;
|
||||
DeckActivationFunctor maDeckActivationFunctor;
|
||||
bool mbIsHidden;
|
||||
bool mbIsHiddenByDefault;
|
||||
};
|
||||
typedef ::std::vector<std::unique_ptr<Item>> ItemContainer;
|
||||
ItemContainer maItems;
|
||||
|
|
|
@ -136,10 +136,8 @@ sal_Int32 Inflater::doInflateBytes (Sequence < sal_Int8 > &rBuffer, sal_Int32 n
|
|||
|
||||
InflaterBytes::InflaterBytes(bool bNoWrap)
|
||||
: bFinished(false),
|
||||
bNeedDict(false),
|
||||
nOffset(0),
|
||||
nLength(0),
|
||||
nLastInflateError(0),
|
||||
sInBuffer(nullptr)
|
||||
{
|
||||
pStream.reset(new z_stream);
|
||||
|
@ -201,12 +199,9 @@ sal_Int32 InflaterBytes::doInflateBytes (sal_Int8* pOutBuffer, sal_Int32 nNewOff
|
|||
{
|
||||
if ( !pStream )
|
||||
{
|
||||
nLastInflateError = Z_STREAM_ERROR;
|
||||
return 0;
|
||||
}
|
||||
|
||||
nLastInflateError = 0;
|
||||
|
||||
pStream->next_in = reinterpret_cast<const unsigned char*>( sInBuffer + nOffset );
|
||||
pStream->avail_in = nLength;
|
||||
pStream->next_out = reinterpret_cast < unsigned char* > ( pOutBuffer + nNewOffset );
|
||||
|
@ -229,15 +224,13 @@ sal_Int32 InflaterBytes::doInflateBytes (sal_Int8* pOutBuffer, sal_Int32 nNewOff
|
|||
return nNewLength - pStream->avail_out;
|
||||
|
||||
case Z_NEED_DICT:
|
||||
bNeedDict = true;
|
||||
nOffset += nLength - pStream->avail_in;
|
||||
nLength = pStream->avail_in;
|
||||
return 0;
|
||||
|
||||
default:
|
||||
// it is no error, if there is no input or no output
|
||||
if ( nLength && nNewLength )
|
||||
nLastInflateError = nResult;
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -168,8 +168,6 @@ private:
|
|||
// SCO only
|
||||
OUString m_sLibrarySize;
|
||||
|
||||
css::uno::Sequence<css::beans::PropertyValue> m_aEngineOptions;
|
||||
|
||||
std::vector<ModelConstraint> m_aConstraints;
|
||||
|
||||
void Initialize();
|
||||
|
|
|
@ -778,9 +778,6 @@ void SolverSettings::ResetToDefaults()
|
|||
// The default solver engine is the first implementation available
|
||||
m_sLOEngineName = aEngineNames[0];
|
||||
|
||||
// Default engine options
|
||||
m_aEngineOptions = ScSolverUtil::GetDefaults(m_sLOEngineName);
|
||||
|
||||
// Clear all constraints
|
||||
m_aConstraints.clear();
|
||||
}
|
||||
|
|
|
@ -141,7 +141,6 @@ void TabBar::SetDecks(const ResourceManager::DeckContextDescriptorContainer& rDe
|
|||
xItem->mxButton->connect_clicked(LINK(xItem.get(), TabBar::Item, HandleClick));
|
||||
xItem->maDeckActivationFunctor = maDeckActivationFunctor;
|
||||
xItem->mbIsHidden = !xDescriptor->mbIsEnabled;
|
||||
xItem->mbIsHiddenByDefault = xItem->mbIsHidden; // the default is the state while creating
|
||||
|
||||
xItem->mxButton->set_visible(deck.mbIsEnabled);
|
||||
}
|
||||
|
@ -253,7 +252,6 @@ TabBar::Item::Item(TabBar& rTabBar)
|
|||
, mxBuilder(Application::CreateBuilder(rTabBar.GetContainer(), u"sfx/ui/tabbutton.ui"_ustr))
|
||||
, mxButton(mxBuilder->weld_toolbar(u"button"_ustr))
|
||||
, mbIsHidden(false)
|
||||
, mbIsHiddenByDefault(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -132,8 +132,6 @@ void Comment::InitControls(const SwPostItField* pPostItField)
|
|||
return;
|
||||
msText = pPostItField->GetText();
|
||||
msAuthor = pPostItField->GetPar1();
|
||||
msInitials = pPostItField->GetInitials();
|
||||
msName = pPostItField->GetName();
|
||||
maDate = Date(pPostItField->GetDateTime().GetDate());
|
||||
maTime = tools::Time(pPostItField->GetDateTime().GetTime());
|
||||
mbResolved = pPostItField->GetResolved();
|
||||
|
|
|
@ -68,8 +68,6 @@ private:
|
|||
sw::sidebar::CommentsPanel& mrCommentsPanel;
|
||||
OUString msText;
|
||||
OUString msAuthor;
|
||||
OUString msInitials; //Initials of Author.
|
||||
OUString msName; //Name of the comment
|
||||
Date maDate;
|
||||
tools::Time maTime;
|
||||
|
||||
|
|
Loading…
Reference in a new issue