Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ----SettingsIfView.h-----------------------------------------------------
  2.  
  3. #ifndef SETTINGS_IFVIEW_H
  4. #define SETTINGS_IFVIEW_H
  5.  
  6. #include "NetworkSettings.h"
  7.  
  8. #include <Screen.h>
  9. #include <View.h>
  10.  
  11.  
  12. class SettingsIfView : public BView {
  13. public:
  14.                                 SettingsIfView(BRect frame, int family);
  15.     virtual                     ~SettingsIfView();
  16. }
  17.  
  18.  
  19. #endif /* SETTINGS_IFVIEW_H */
  20.  
  21.  
  22.  
  23.  
  24. ----SettingsIfView.cpp----------------------------------------
  25.  
  26. #include "SettingsIfView.h"
  27. #include "NetworkSettings.h"
  28.  
  29.  
  30. SettingsIfView::SettingsIfView(BRect frame, int family)
  31.     : BView(frame, "test", B_FOLLOW_ALL_SIDES, 0)
  32. {
  33.  
  34.  
  35.  
  36. }
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. ----error-------------------------
  45.  
  46. ++ ../../../../../../generated/objects/haiku/x86/release/tests/kits/net/preflet/InterfacesAddOn/SettingsIfView.o
  47. SettingsIfView.h:18: error: new types may not be defined in a return type
  48. SettingsIfView.h:18: note: (perhaps a semicolon is missing after the definition of 'SettingsIfView')
  49. SettingsIfView.cpp:13: error: return type specification for constructor invalid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement