mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-13 05:01:30 +00:00
save a pointer to save some casts
svn path=/trunk/playground/graphics/okular/; revision=641327
This commit is contained in:
parent
3507d4e68f
commit
f1fd2750e4
4
part.cpp
4
part.cpp
|
@ -1601,7 +1601,7 @@ void Part::updateAboutBackendAction()
|
|||
* BrowserExtension class
|
||||
*/
|
||||
BrowserExtension::BrowserExtension(Part* parent)
|
||||
: KParts::BrowserExtension( parent )
|
||||
: KParts::BrowserExtension( parent ), m_part( parent )
|
||||
{
|
||||
emit enableAction("print", true);
|
||||
setURLDropHandlingEnabled(true);
|
||||
|
@ -1610,7 +1610,7 @@ BrowserExtension::BrowserExtension(Part* parent)
|
|||
|
||||
void BrowserExtension::print()
|
||||
{
|
||||
static_cast<Part*>(parent())->slotPrint();
|
||||
m_part->slotPrint();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue