fix -Wextra & -Wdeprecated in Spreadsheet

This commit is contained in:
wmayer
2016-09-22 16:35:05 +02:00
parent 801ac34258
commit 6cf82fbe62
8 changed files with 34 additions and 6 deletions

View File

@@ -44,6 +44,7 @@ PropertyColumnWidths::PropertyColumnWidths()
}
PropertyColumnWidths::PropertyColumnWidths(const PropertyColumnWidths &other)
: Property(), std::map<int, int>(other)
{
std::map<int, int>::const_iterator i = other.begin();

View File

@@ -43,6 +43,7 @@ PropertyRowHeights::PropertyRowHeights()
}
PropertyRowHeights::PropertyRowHeights(const PropertyRowHeights &other)
: Property(), std::map<int, int>(other)
{
}

View File

@@ -873,7 +873,7 @@ short Sheet::mustExecute(void) const
*
*/
void Sheet::clear(CellAddress address, bool all)
void Sheet::clear(CellAddress address, bool /*all*/)
{
Cell * cell = getCell(address);
std::string addr = address.toString();
@@ -1286,7 +1286,7 @@ void Sheet::onRelabledDocument(const Document &document)
* @param document
*/
void Sheet::onRenamedDocument(const Document &document)
void Sheet::onRenamedDocument(const Document & /*document*/)
{
}

View File

@@ -154,6 +154,9 @@ PyObject* SheetPy::clear(PyObject *args)
PyObject* SheetPy::clearAll(PyObject *args)
{
if (!PyArg_ParseTuple(args, ""))
return 0;
this->getSheetPtr()->clearAll();
Py_Return;
}
@@ -912,7 +915,7 @@ PyObject *SheetPy::getCustomAttributes(const char* attr) const
return prop->getPyObject();
}
int SheetPy::setCustomAttributes(const char* attr, PyObject* obj)
int SheetPy::setCustomAttributes(const char* , PyObject* )
{
return 0;
}