summaryrefslogtreecommitdiff
path: root/comphelper/source/misc/lok.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/source/misc/lok.cxx')
-rw-r--r--comphelper/source/misc/lok.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx
index 292de13effe3..ff8c40798f22 100644
--- a/comphelper/source/misc/lok.cxx
+++ b/comphelper/source/misc/lok.cxx
@@ -104,9 +104,11 @@ bool isActive()
return g_bActive;
}
-void setMobilePhone(int nViewId, bool bIsMobilePhone)
+void setMobilePhone(int nViewId)
{
- g_vIsViewMobilePhone[nViewId] = bIsMobilePhone;
+ assert(!isMobilePhone(nViewId));
+ assert(!isTablet(nViewId));
+ g_vIsViewMobilePhone[nViewId] = true;
}
bool isMobilePhone(int nViewId)
@@ -117,9 +119,11 @@ bool isMobilePhone(int nViewId)
return false;
}
-void setTablet(int nViewId, bool bIsTablet)
+void setTablet(int nViewId)
{
- g_vIsViewTablet[nViewId] = bIsTablet;
+ assert(!isMobilePhone(nViewId));
+ assert(!isTablet(nViewId));
+ g_vIsViewTablet[nViewId] = true;
}
bool isTablet(int nViewId)