fix -Wextra & -Wdeprecated in Spreadsheet
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -43,6 +43,7 @@ PropertyRowHeights::PropertyRowHeights()
|
||||
}
|
||||
|
||||
PropertyRowHeights::PropertyRowHeights(const PropertyRowHeights &other)
|
||||
: Property(), std::map<int, int>(other)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user