seems like the saying about the first thing that is written in a new

project is "yet another string class" is no longer true.

svn path=/trunk/kdegraphics/kpdf/; revision=250495
remotes/origin/kpdf-3.2
Dirk Mueller 23 years ago
parent 960cbef520
commit 96d864b3b8
  1. 5
      kpdf/kpdf_pagewidget.cc
  2. 11
      kpdf/utils.h

@ -1,5 +1,6 @@
#include "QOutputDevPixmap.h"
#include <kglobal.h>
#include <qcursor.h>
#include <qpainter.h>
#include <qmutex.h>
@ -9,8 +10,6 @@
#include "kpdf_pagewidget.h"
#include "kpdf_pagewidget.moc"
#include "utils.h"
namespace KPDF
{
PageWidget::PageWidget(QWidget* parent, const char* name)
@ -110,7 +109,7 @@ namespace KPDF
mutex.lock();
if (m_doc)
{
m_currentPage = max(0, min( page, m_doc->getNumPages()));
m_currentPage = KMAX(0, KMIN( page, m_doc->getNumPages()));
} else {
m_currentPage = 0;
}

@ -1,11 +0,0 @@
template<class T>
inline T min(T a, T b)
{
return ( a < b ? a : b );
}
template<class T>
inline T max(T a, T b)
{
return ( a > b ? a : b );
}
Loading…
Cancel
Save